浏览代码

Formatting

Wolfgang Ortmann 9 年之前
父节点
当前提交
36dd1f2405
共有 1 个文件被更改,包括 11 次插入6 次删除
  1. 11 6
      src/kind.ag

+ 11 - 6
src/kind.ag

@@ -497,14 +497,18 @@ bool backupVault(const string& vault,
             } // if (!setIdx.empty())
             } // if (!setIdx.empty())
         } // (conf.hasKey("setRule"))
         } // (conf.hasKey("setRule"))
 
 
-      if (backupNow)
+      if (!quiet)
         {
         {
-          verbosePrint("backup to \"" + imageFullName + "\"");
-          if (setRuleIdx >= 0 && !quiet)
-            cout << "  backup set is \"" << currentSet << "\"" << endl;
+          if (backupNow)
+            {
+              if (setRuleIdx >= 0)
+                cout << "  backup set \"" << currentSet << "\" to \"" << imageFullName << "\"" << endl;
+              else
+                cout << "  backup to \"" << imageFullName << "\"" << endl;
+            }
+          else
+            cout << "  no backup set needs update" << endl;
         }
         }
-      else if (!quiet)
-        cout << "  no backup set needs update" << endl;
 
 
       if (backupNow)
       if (backupNow)
         {
         {
@@ -522,6 +526,7 @@ bool backupVault(const string& vault,
 
 
           if (!dryRun)
           if (!dryRun)
             {
             {
+              // hard or soft link to last image path
               string lastPath = vaultPath + "/last";
               string lastPath = vaultPath + "/last";
               struct stat fstat;
               struct stat fstat;