Ask / Submit

[Patchmanager] Locally testing a patch? [answered]

asked 2019-01-09 14:56:07 +0300

rozgwi gravatar image

updated 2019-01-09 15:01:38 +0300

Can someone advise me on testing patches locally?
I'm trying to convert this hack for the Top Menu into a package for Patchmanager. When copying the unified_diff.patch and patch.json to /usr/share/patchmanager/patches/patch-test it wont show up in the list of patches (restart doesn't change that).

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by rozgwi
close date 2019-01-10 02:06:29.089076



You need to add the name of the patch folder as well as what you already have, example /usr/share/patchmanager/patches/my-top-menu-patch then place your contents inside my-top-menu-patch folder.

Edz ( 2019-01-09 15:07:37 +0300 )edit

That's what I did. Do folder and specified name in the JSON have to be identical?

The directory the files are stored in is cluse-gesture

below my JSON:

    "name": "Close Gesture",
    "description": "Bring back the classic (MeeGo) close gesture for SFOS 3.0 with the new Top-Menu available only from Events View and Home Screen.\r\nOriginal work by figgis-diggis @ TJC",
    "category": "homescreen",
    "version": "0.0.1",
    "compatible": [""]},
rozgwi ( 2019-01-09 18:10:45 +0300 )edit

1 Answer

Sort by » oldest newest most voted

answered 2019-01-09 19:13:11 +0300

coderus gravatar image

your json is invalid. you have extra "," at the end

edit flag offensive delete publish link more



Thank you, coderus! Never quite got the hang of JSON.

I corrected the file and also took inspiration from one of your patches (Launcher Combined).
Unfortunately it is still not being listed in Patchmanager. Curiously enough, it shows up both in the logs and as possibly conflicting patch e.g. for Top menu control.
Scratch that. After a system reboot it shows up. Thanks again.

Below the updated JSON.

    "name": "close-gesture",
    "display_name": "Close gesture revived",
    "description": "Bring back the classic (MeeGo/SFOS 2) close gesture for SFOS 3.0 with the new Top-Menu available only from Events View and Homescreen.\r\nOriginal work by figgis-diggis@TJC",
    "category": "homescreen",
    "version": "0.0.1",
    "compatible": [""]
rozgwi ( 2019-01-10 00:55:25 +0300 )edit

Question tools



Asked: 2019-01-09 14:56:07 +0300

Seen: 249 times

Last updated: Jan 09