From: Christer Ekholm Date: Wed, 26 Aug 2015 20:37:26 +0000 (+0200) Subject: Output which snapshots are beeing deleted if verbose. X-Git-Tag: v0.2.8~1^2~1 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=2c95960d2e45a40f1a4b99b4e968910fb367aef6;p=thirdparty%2Fsnapper.git Output which snapshots are beeing deleted if verbose. --- diff --git a/client/commands.cc b/client/commands.cc index 9c760ef3..4366fa0f 100644 --- a/client/commands.cc +++ b/client/commands.cc @@ -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::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); }