Skip to content

Commit 8fb48d1

Browse files
nephrosnephrosOlf0
authored
Implement a Last-Known-Good feature (#437)
* If auto applying succeded, save a known good state * Add option to load last-know-good patch list * Add call to save current set as KnownGood * Add "save as good" to command line options * Add "load known-good" to command line options Contributes-To: #277 --------- Co-authored-by: nephros <nemo@pgxperiiia10> Co-authored-by: olf <[email protected]>
1 parent ee4254c commit 8fb48d1

File tree

9 files changed

+259
-173
lines changed

9 files changed

+259
-173
lines changed

src/bin/patchmanager-daemon/dbus/org.SfietKonstantin.patchmanager.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@
107107
<method name="getLoaded">
108108
<arg name="loaded" type="b" direction="out" />
109109
</method>
110+
<method name="restorePatchList">
111+
<annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
112+
</method>
113+
<method name="backupWorkingPatchList">
114+
<annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
115+
</method>
110116
<method name="resolveFailure">
111117
<annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
112118
</method>

src/bin/patchmanager-daemon/main.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@ void help()
5757
{
5858
std::cout << "Patchmanager " << BUILD_VERSION << std::endl;
5959
std::cout << "Usage:" << std::endl;
60-
std::cout << " patchmanager [--help] : Print this help text" << std::endl;
61-
std::cout << " patchmanager -a <Patch> : Enable and activate a Patch" << std::endl;
62-
std::cout << " patchmanager -u <Patch> : Deactivate and disable (unapply) a Patch" << std::endl;
63-
std::cout << " patchmanager --unapply-all : Deactivate and disable (unapply) all Patches" << std::endl;
64-
std::cout << " patchmanager --daemon : Start Patchmanager as daemon" << std::endl;
60+
std::cout << " patchmanager [--help] : Print this help text" << std::endl;
61+
std::cout << " patchmanager -a <Patch> : Enable and activate a Patch" << std::endl;
62+
std::cout << " patchmanager -u <Patch> : Deactivate and disable (unapply) a Patch" << std::endl;
63+
std::cout << " patchmanager --unapply-all : Deactivate and disable (unapply) all Patches" << std::endl;
64+
std::cout << " patchmanager --backup-working : Save list of enabled Patches as \"working\"" << std::endl;
65+
std::cout << " patchmanager --restore-working : Enable backup list of \"working\" Patches" << std::endl;
66+
std::cout << " patchmanager --daemon : Start Patchmanager as daemon" << std::endl;
6567
}
6668

6769
int main(int argc, char **argv)

0 commit comments

Comments
 (0)