Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak

    Reply
    Page 193 of 291 | Prev | 183   191     192   193   194     195   203 | Next | Last
    coderus | # 1921 | 2016-05-09, 17:55 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 4 Users Say Thank You to coderus For This Useful Post:
    ajalkane, Jordi, peterleinchen, Schturman

     
    ajalkane | # 1922 | 2016-05-09, 20:06 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to ajalkane For This Useful Post:
    Jordi

     
    coderus | # 1923 | 2016-05-09, 20:09 | Report

    remove folders from /var/lib/patchmanager/ausmt/patches

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to coderus For This Useful Post:
    ajalkane, Jordi

     
    ajalkane | # 1924 | 2016-05-10, 20:22 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to ajalkane For This Useful Post:
    atlochowski, Jordi

     
    coderus | # 1925 | 2016-05-10, 20:37 | Report

    It's so bad when patches creating new files. this is not the thing patches should really do.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Ancelad | # 1926 | 2016-05-10, 20:46 | Report

    @coderus
    but what about diff between file and /dev/null? Is it bad or not?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Ancelad For This Useful Post:
    pichlo

     
    coderus | # 1927 | 2016-05-11, 13:29 | Report

    bad. you should package new files, not apply with patch.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to coderus For This Useful Post:
    pichlo

     
    Ancelad | # 1928 | 2016-05-11, 13:46 | Report

    Even if post/pre contains file-check and rm-command for this file?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    coderus | # 1929 | 2016-05-11, 16:04 | Report

    yes. everything new should be packaged.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to coderus For This Useful Post:
    pichlo

     
    pichlo | # 1930 | 2016-05-11, 17:52 | Report

    coderus is right, a patch creating a file is BAD.
    I like the idea of diff with /dev/null though. Maybe even /dev/random

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 193 of 291 | Prev | 183   191     192   193   194     195   203 | Next | Last
vBulletin® Version 3.8.8
Normal Logout