diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-01-07 17:59:24 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-01-07 17:59:24 +0000 |
commit | 349d805c67c941a86a263193e3f383d26818d7b1 (patch) | |
tree | 7975d1872e89456d0addd2bb8b974cd16f197695 | |
parent | 0ce3932c0eba49aca7b98cacc75d78afd1fb9f51 (diff) | |
download | portage-349d805c67c941a86a263193e3f383d26818d7b1.tar.gz portage-349d805c67c941a86a263193e3f383d26818d7b1.tar.bz2 portage-349d805c67c941a86a263193e3f383d26818d7b1.zip |
Don't automatically fix digests in --pretend mode.
svn path=/main/trunk/; revision=5480
-rwxr-xr-x | bin/repoman | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/repoman b/bin/repoman index 60aa4d9d8..3be93d7a7 100755 --- a/bin/repoman +++ b/bin/repoman @@ -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." |