recheck what changed in the repository also when nothing was added, because
authorZac Medico <zmedico@gentoo.org>
Thu, 30 Oct 2008 22:25:27 +0000 (22:25 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 30 Oct 2008 22:25:27 +0000 (22:25 -0000)
manifest regeneration might change the Manifest, this fixes bug #229033
(branches/prefix r11755)

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

bin/repoman

index 0ea4eece66f1fb4eed8be9c5a0c6da4580b2cf23..660294c68397fdb7238403b941f11d0999f84dd6 100755 (executable)
@@ -1696,10 +1696,9 @@ else:
                sys.exit(1)
 
        if vcs == "cvs":
-               if myautoadd:
-                       mycvstree = cvstree.getentries("./", recursive=1)
-                       mychanged = cvstree.findchanged(mycvstree, recursive=1, basedir="./")
-                       mynew = cvstree.findnew(mycvstree, recursive=1, basedir="./")
+               mycvstree = cvstree.getentries("./", recursive=1)
+               mychanged = cvstree.findchanged(mycvstree, recursive=1, basedir="./")
+               mynew = cvstree.findnew(mycvstree, recursive=1, basedir="./")
                myremoved=portage.cvstree.findremoved(mycvstree,recursive=1,basedir="./")
                bin_blob_pattern = re.compile("^-kb$")
                no_expansion = set(portage.cvstree.findoption(mycvstree, bin_blob_pattern,
@@ -1707,10 +1706,9 @@ else:
 
 
        if vcs == "svn":
-               if myautoadd:
-                       svnstatus = os.popen("svn status").readlines()
-                       mychanged = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem and elem[:1] in "MR" ]
-                       mynew     = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem.startswith("A") ]
+               svnstatus = os.popen("svn status").readlines()
+               mychanged = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem and elem[:1] in "MR" ]
+               mynew     = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem.startswith("A") ]
                myremoved = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem.startswith("D") ]
                # in contrast to CVS, SVN expands nothing by default.
                # bin_blobs historically