Don't automatically fix digests in --pretend mode.
authorZac Medico <zmedico@gentoo.org>
Sun, 7 Jan 2007 17:59:24 +0000 (17:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 7 Jan 2007 17:59:24 +0000 (17:59 -0000)
svn path=/main/trunk/; revision=5480

bin/repoman

index 60aa4d9d8360557f87cb08d405cb33d100193da3..3be93d7a714851c071a7deb6707136b52ad03612 100755 (executable)
@@ -401,7 +401,9 @@ myreporoot=None
 if os.path.isdir("CVS"):
        isCvs = True
 
-if not "--pretend" in myoptions and not isCvs:
+if mymode == "commit" and \
+       not isCvs and \
+       "--pretend" not in myoptions:
        print
        print darkgreen("Not in a CVS repository; enabling pretend mode.")
        myoptions.append("--pretend");
@@ -814,7 +816,8 @@ for x in scanlist:
                                fails["CVS/Entries.IO_error"].append(checkdir+"/files/CVS/Entries")
                        continue
 
-       if mymode in ("fix", "commit"):
+       if mymode in ("fix", "commit") and \
+               "--pretend" not in myoptions:
                repoman_settings["O"] = checkdir
                if not portage.digestgen([], repoman_settings, myportdb=portdb):
                        print "Unable to generate manifest."