Active Topics

 


Reply
Thread Tools
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#1921
ls /var/lib/patchmanager/ausmt/patches
for each patch file check files it's patching
then search for packages using rpm -qf filename
and reinstall each found package by using pkcon install package
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 4 Users Say Thank You to coderus For This Useful Post:
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#1922
One more problem... Other patches I had no trouble with doing it like this:

With coderus' method reinstalled each package, then unapplied them from PatchManager and reapplied them.

But the "Upcoming events on lockscreen" patch was a trickier one. I tried unapplying it and PatchManager said "Failed to remove patch" and it stayed activated.

I then decided to remove it with "pkcon remove lockscreen-upcoming". Now PatchManager told me the patch is no longer available and removed it from its list. I then reinstalled it from warehouse. Now when I started PatchManager it showed this patch already applied, and I'm in the same sorry state that I can't unapply it so that I could reapply it.
__________________
My N9/N950 projects:
 

The Following User Says Thank You to ajalkane For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#1923
remove folders from /var/lib/patchmanager/ausmt/patches
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 2 Users Say Thank You to coderus For This Useful Post:
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#1924
Originally Posted by coderus View Post
remove folders from /var/lib/patchmanager/ausmt/patches
This was not enough for Upcoming Events on lockscreen patch, so to save time for others potentially battling with this (and for me to remember for next update) here's how I got it working:

First uninstall:

Code:
pkcon remove lockscreen-upcoming
Edit file /var/lib/patchmanager/ausmt/packages and remove the line which references lockscreen-upcoming.

Remove all added QML files that have been installed when lockscreen-upcoming was applied:

Code:
rm -f /usr/share/lipstick-jolla-home-qt5/lockscreen/BorderRectangle.qml
rm /usr/share/lipstick-jolla-home-qt5/lockscreen/LockEventItem.qml
rm -f /usr/share/lipstick-jolla-home-qt5/lockscreen/LockTimeLabel.qml
rm -f /usr/share/lipstick-jolla-home-qt5/lockscreen/ShowCalEvents.qml
Then you can install it again from Warehouse and activate successfully from PatchManager.
__________________
My N9/N950 projects:
 

The Following 2 Users Say Thank You to ajalkane For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#1925
It's so bad when patches creating new files. this is not the thing patches should really do.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Ancelad's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#1926
@coderus
but what about diff between file and /dev/null? Is it bad or not?
 

The Following User Says Thank You to Ancelad For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#1927
bad. you should package new files, not apply with patch.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
Ancelad's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#1928
Even if post/pre contains file-check and rm-command for this file?
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#1929
yes. everything new should be packaged.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
pichlo's Avatar
Posts: 6,450 | Thanked: 20,982 times | Joined on Sep 2012 @ UK
#1930
coderus is right, a patch creating a file is BAD.
I like the idea of diff with /dev/null though. Maybe even /dev/random
__________________
Русский военный корабль, иди нахуй!
 
Reply

Tags
patchmanager, sailfish os


 
Forum Jump


All times are GMT. The time now is 05:05.