1 |
commit: af88402104c90e99ab40bff956f58395ea362a6e |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 27 20:32:47 2016 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 29 23:02:56 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=af884021 |
7 |
|
8 |
repoman: Re-add an if that bypasses the changes scan (bug 540882) |
9 |
|
10 |
This if is neded to prevent unnecessary VCS operations which is a big slowdown for |
11 |
large repositories. |
12 |
|
13 |
X-Gentoo-Bug: 540882 |
14 |
X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=540882 |
15 |
|
16 |
pym/repoman/scanner.py | 5 ++++- |
17 |
1 file changed, 4 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/pym/repoman/scanner.py b/pym/repoman/scanner.py |
20 |
index d1c10d7..04d8b29 100644 |
21 |
--- a/pym/repoman/scanner.py |
22 |
+++ b/pym/repoman/scanner.py |
23 |
@@ -171,7 +171,10 @@ class Scanner(object): |
24 |
print(green("\nRepoMan scours the neighborhood...")) |
25 |
|
26 |
self.changed = Changes(self.options) |
27 |
- self.changed.scan(self.vcs_settings) |
28 |
+ # bypass unneeded VCS operations if not needed |
29 |
+ if (self.options.if_modified != "y" and |
30 |
+ self.options.mode in ("manifest", "manifest-check")): |
31 |
+ self.changed.scan(self.vcs_settings) |
32 |
|
33 |
self.have = { |
34 |
'pmasked': False, |