]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
Output which snapshots are beeing deleted if verbose.
authorChrister Ekholm <che@chrekh.se>
Wed, 26 Aug 2015 20:37:26 +0000 (22:37 +0200)
committerChrister Ekholm <che@chrekh.se>
Wed, 26 Aug 2015 20:37:26 +0000 (22:37 +0200)
client/commands.cc

index 9c760ef3d82b22e9f522ccf63a31a885ee2e7ffa..4366fa0f795e1dbd9d57b0ebf98fc0d8c52538f4 100644 (file)
@@ -21,6 +21,8 @@
 
 
 #include "commands.h"
+#include "utils/text.h"
+#include "misc.h"
 
 
 #define SERVICE "org.opensuse.Snapper"
@@ -268,6 +270,16 @@ command_delete_xsnapshots(DBus::Connection& conn, const string& config_name,
     DBus::Hoho hoho(call);
     hoho << config_name << nums;
 
+    if (verbose) {
+       cout << _("Deleting snapshots from ") << config_name << ": ";
+       for (list<unsigned int>::const_iterator it = nums.begin(); it != nums.end(); ++it) {
+           if (it != nums.begin())
+               cout << ", ";
+           cout << *it;
+       }
+       cout << endl;
+    }
+
     conn.send_with_reply_and_block(call);
 }