From: Zac Medico Date: Sun, 11 Jan 2009 19:42:13 +0000 (-0000) Subject: Fix a TypeError which occurs in pretend commit mode when vcs is None. Thanks X-Git-Tag: v2.2_rc21~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=50aa6d34ab3469cd1f3ed16da3488f7a2aa1a8e4;p=portage.git Fix a TypeError which occurs in pretend commit mode when vcs is None. Thanks to Fabian Groffen for reporting. svn path=/main/trunk/; revision=12426 --- 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)