Fix broken stuff to avoid tracebacks when running in commit mode with
authorZac Medico <zmedico@gentoo.org>
Fri, 31 Oct 2008 04:01:49 +0000 (04:01 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 31 Oct 2008 04:01:49 +0000 (04:01 -0000)
--pretend and no vcs.

svn path=/main/trunk/; revision=11760

bin/repoman

index 98187970dfe39fc5fc5d199f2be5d4508aa84823..fd5d8a68d1203e86e2fd1f0ffeee4101672a9dab 100755 (executable)
@@ -750,6 +750,8 @@ new_ebuilds = set()
 modified_changelogs = set()
 mychanged = []
 mynew = []
+myremoved = []
+
 if vcs == "cvs":
        mycvstree = cvstree.getentries("./", recursive=1)
        mychanged = cvstree.findchanged(mycvstree, recursive=1, basedir="./")
@@ -1815,7 +1817,8 @@ else:
                unameout += platform.processor()
        else:
                unameout += platform.machine()
-       commitmessage+="\n(Portage version: "+str(portage_version)+"/"+vcs+"/"+unameout
+       commitmessage += "\n(Portage version: %s/%s/%s" % \
+               (portage_version, vcs, unameout)
        if options.force:
                commitmessage += ", RepoMan options: --force"
        commitmessage += ")"