]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
Explain ProgramOptions
authorMartin Vidner <mvidner@suse.cz>
Mon, 9 Dec 2019 14:59:27 +0000 (15:59 +0100)
committerMartin Vidner <mvidner@suse.cz>
Fri, 13 Dec 2019 15:31:47 +0000 (16:31 +0100)
zypp-plugin/snapper_zypp_plugin.cc

index c708165f39185c5d539551466952e3b2e10d7128..e01512c3b12dc06e6db6145b2a81d58e4ccedf6c 100644 (file)
@@ -42,6 +42,12 @@ ostream& operator <<(ostream& os, set<string> ss) {
     return os;
 }
 
+// Normally the only configuration this program needs is
+// the /etc/snapper/zypp-plugin.conf file.
+// But for testing we need more places to inject mocks.
+// This is done with SNAPPER_ZYPP_PLUGIN_* environment variables.
+// (Using argv is not useful since libzypp does not use it in the
+// plugin protocol.)
 class ProgramOptions {
 public:
     string plugin_config;