Gentoo Archives: gentoo-commits

From: Brian Dolbec <brian.dolbec@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/revdep_rebuild/
Date: Tue, 11 Feb 2014 08:40:35
Message-Id: 1392106163.f6a7b7cad3df68cc62a2784f7f922adaa91848f2.dol-sen@gentoo
1 commit: f6a7b7cad3df68cc62a2784f7f922adaa91848f2
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 11 08:00:38 2014 +0000
4 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
5 CommitDate: Tue Feb 11 08:09:23 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=f6a7b7ca
7
8 revdep_rebuild/stuff.py: Sort the set of files to scan.
9
10 Comment out the debug print()s.
11 Sorting was also a double check that the new scan_files() processing was correct.
12 It previously failed to find the same breakage when the list was sorted.
13
14 ---
15 pym/gentoolkit/revdep_rebuild/stuff.py | 8 ++++----
16 1 file changed, 4 insertions(+), 4 deletions(-)
17
18 diff --git a/pym/gentoolkit/revdep_rebuild/stuff.py b/pym/gentoolkit/revdep_rebuild/stuff.py
19 index 817396e..7f8c574 100644
20 --- a/pym/gentoolkit/revdep_rebuild/stuff.py
21 +++ b/pym/gentoolkit/revdep_rebuild/stuff.py
22 @@ -36,9 +36,9 @@ def scan(params, files, max_args):
23
24 @return scanelf output (joined if was called several times)
25 '''
26 - print("SCAN(), params = ", params, len(files))
27 - # change it to a sorted list for group processing
28 - _files = list(files)
29 + #print("SCAN(), params = ", params, len(files))
30 + # change it to a list for group processing
31 + _files = sorted(files)
32 out = []
33 for i in range(0, len(_files), max_args):
34 output = call_program(
35 @@ -46,7 +46,7 @@ def scan(params, files, max_args):
36 output = [x for x in output if x != '']
37 if output:
38 out.extend(output)
39 - print("SCAN(), final output length:", len(out))
40 + #print("SCAN(), final output length:", len(out))
41 return out