aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2015-02-21 11:12:21 -0800
committerZac Medico <zmedico@gentoo.org>2015-02-21 12:23:13 -0800
commitc1489985f64443c4fba0b9661eee60f61e470d37 (patch)
treee357db636fb4790952954a70f242d9bd67ba82ca
parentemaint merges: Fix call to emerge (diff)
downloadportage-c1489985f64443c4fba0b9661eee60f61e470d37.tar.gz
portage-c1489985f64443c4fba0b9661eee60f61e470d37.tar.bz2
portage-c1489985f64443c4fba0b9661eee60f61e470d37.zip
repoman: skip vcs calls for manifest modes (bug 540882)
For manifest and manifest-check modes, there's no need to call the vcs unless --if-modified=y is enabled. X-Gentoo-Bug: 540882 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=540882 Acked-by: Brian Dolbec <dolsen@gentoo.org>
-rwxr-xr-xbin/repoman5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index 16ea055b3..13c220daf 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -1187,7 +1187,10 @@ mychanged = []
mynew = []
myremoved = []
-if vcs == "cvs":
+if (options.if_modified != "y" and
+ options.mode in ("manifest", "manifest-check")):
+ pass
+elif vcs == "cvs":
mycvstree = cvstree.getentries("./", recursive=1)
mychanged = cvstree.findchanged(mycvstree, recursive=1, basedir="./")
mynew = cvstree.findnew(mycvstree, recursive=1, basedir="./")