# I did upgrade with patches applied - What now?

asked 2016-05-11 13:33:52 +0200

I did upgrade my Jolla phone to 2.0.1 today but I forgot to unapply 3 patches in patchmanager. So far I can still apply/unapply them and they still work when applied. So what chance is yet there I broke something?

There is always the possibility to reset the phone and start over but that is not the way I would like to solve this. I checked the 3 patches and they are modifying 9 files, mostly .qml in /usr/share/lipstick-jolla-home-qt5/ and /usr/share/jolla-settings/.

My idea goes along the line of checking for inconsistencies and replacing all affected files if necessary. Maybe somebody could help me with:

• Is there an easy way to find out which files were replaced in the 2.0.1 update?
• Is there a chance to see which changes have been made to the respective qml-files in the update? Because, if none, there is no problem ;)

I can always pkcon get-files etc. through the packages mentioned in the changelog but maybe there is a better option.

edit retag close delete

1

as long as you can unapply and apply them, you are fine I would say, because applying the patch should fail if the file is not in the original state. you can remove all patches by removing the patchmanager package and reinstalling the package containing all the qml files (qt5-home-something, there was an howto by coderus somewhere)

( 2016-05-11 15:00:10 +0200 )edit

Sort by » oldest newest most voted

answered 2016-05-11 15:14:11 +0200

I guess everything is fine untill everything is working. I wouldn´t do anything without strange behavior. Normaly if anything go wrong by upgrade with activated patches you´ll find it out really fast, Bootloop for example.

Otherwise you can unapply the patches, downgrade to an earlier version and reupgrade to 2.0.1 https://together.jolla.com/question/50986/howto-how-to-revert-to-an-earlier-sailfish-os-version/

more

I would think that simply reinstalling the affected rpm's is much safer than downgrading and re-upgrading

( 2016-05-11 15:30:36 +0200 )edit

Unapply/downgrade/upgrade/apply is better than resetting the device. However "reinstalling the affected rpm's" would be much quicker - but how would I find out which rpm belongs to a specific file?

( 2016-05-11 16:50:58 +0200 )edit
1

@femtopeta, Check to which package related specific file:

rpm -qf /path/to/your/file.qml

( 2016-05-12 01:41:56 +0200 )edit

answered 2016-05-12 12:03:54 +0200

@schturman Great, that's it, thank you!

So here is my solution:

1. check openrepos patches for files: rpm2cpio /path/to/patch.rpm
2. check files for related system packages: rpm -qf /path/to/file.qml
3. reinstall affected system packages: pkcon install [packagename]
more

## Stats

Asked: 2016-05-11 13:33:52 +0200

Seen: 545 times

Last updated: May 11 '16