commit:     ac6eab129ec0aea4d5cd27d3a3606ad9df774af6
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 20:32:47 2016 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Fri Jan 29 05:33:10 2016 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=ac6eab12

repoman: Re-add an if that bypasses the changes scan (bug 540882)

This if  is neded to prevent unnecessary VCS operations which is a big slowdown 
for
large repositories.

X-Gentoo-Bug: 540882
X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=540882

 pym/repoman/scanner.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pym/repoman/scanner.py b/pym/repoman/scanner.py
index d1c10d7..04d8b29 100644
--- a/pym/repoman/scanner.py
+++ b/pym/repoman/scanner.py
@@ -171,7 +171,10 @@ class Scanner(object):
                        print(green("\nRepoMan scours the neighborhood..."))
 
                self.changed = Changes(self.options)
-               self.changed.scan(self.vcs_settings)
+               # bypass unneeded VCS operations if not needed
+               if (self.options.if_modified != "y" and
+                       self.options.mode in ("manifest", "manifest-check")):
+                       self.changed.scan(self.vcs_settings)
 
                self.have = {
                        'pmasked': False,

Reply via email to