diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-01-11 19:42:13 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-01-11 19:42:13 +0000 |
commit | 50aa6d34ab3469cd1f3ed16da3488f7a2aa1a8e4 (patch) | |
tree | 1c6bab26f386ca2a0be285d6e286111b3ba31cea | |
parent | 8607a39dc9d979713f9434839ed1aef2602276a1 (diff) | |
download | portage-50aa6d34ab3469cd1f3ed16da3488f7a2aa1a8e4.tar.gz portage-50aa6d34ab3469cd1f3ed16da3488f7a2aa1a8e4.tar.bz2 portage-50aa6d34ab3469cd1f3ed16da3488f7a2aa1a8e4.zip |
Fix a TypeError which occurs in pretend commit mode when vcs is None. Thanks
to Fabian Groffen <grobian@g.o> for reporting.
svn path=/main/trunk/; revision=12426
-rwxr-xr-x | bin/repoman | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman index 726939293..1d6ef75d4 100755 --- a/bin/repoman +++ b/bin/repoman @@ -2158,7 +2158,12 @@ else: mymsg.write("\n (Unsigned Manifest commit)") mymsg.close() - commit_cmd = [vcs] + commit_cmd = [] + if options.pretend and vcs is None: + # substitute a bogus value for pretend output + commit_cmd.append("cvs") + else: + commit_cmd.append(vcs) commit_cmd.extend(vcs_global_opts) commit_cmd.append("commit") commit_cmd.extend(vcs_local_opts) |