Skip to content

Commit

Permalink
Implement a Last-Known-Good feature (#437)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Nov 27, 2024
1 parent ee4254c commit 8fb48d1
Show file tree
Hide file tree
Showing 9 changed files with 259 additions and 173 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@
<method name="getLoaded">
<arg name="loaded" type="b" direction="out" />
</method>
<method name="restorePatchList">
<annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
</method>
<method name="backupWorkingPatchList">
<annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
</method>
<method name="resolveFailure">
<annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
</method>
Expand Down
12 changes: 7 additions & 5 deletions src/bin/patchmanager-daemon/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ void help()
{
std::cout << "Patchmanager " << BUILD_VERSION << std::endl;
std::cout << "Usage:" << std::endl;
std::cout << " patchmanager [--help] : Print this help text" << std::endl;
std::cout << " patchmanager -a <Patch> : Enable and activate a Patch" << std::endl;
std::cout << " patchmanager -u <Patch> : Deactivate and disable (unapply) a Patch" << std::endl;
std::cout << " patchmanager --unapply-all : Deactivate and disable (unapply) all Patches" << std::endl;
std::cout << " patchmanager --daemon : Start Patchmanager as daemon" << std::endl;
std::cout << " patchmanager [--help] : Print this help text" << std::endl;
std::cout << " patchmanager -a <Patch> : Enable and activate a Patch" << std::endl;
std::cout << " patchmanager -u <Patch> : Deactivate and disable (unapply) a Patch" << std::endl;
std::cout << " patchmanager --unapply-all : Deactivate and disable (unapply) all Patches" << std::endl;
std::cout << " patchmanager --backup-working : Save list of enabled Patches as \"working\"" << std::endl;
std::cout << " patchmanager --restore-working : Enable backup list of \"working\" Patches" << std::endl;
std::cout << " patchmanager --daemon : Start Patchmanager as daemon" << std::endl;
}

int main(int argc, char **argv)
Expand Down
Loading

0 comments on commit 8fb48d1

Please sign in to comment.