1 |
commit: 7f9d43fa1cc2b5c3785443d0ae8ec97ddd3a5deb |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 10 17:03:02 2014 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Feb 11 08:07:35 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=7f9d43fa |
7 |
|
8 |
revdep_rebuild/analyse.py: Fix default parameter assignment. |
9 |
|
10 |
--- |
11 |
pym/gentoolkit/revdep_rebuild/analyse.py | 4 +++- |
12 |
1 file changed, 3 insertions(+), 1 deletion(-) |
13 |
|
14 |
diff --git a/pym/gentoolkit/revdep_rebuild/analyse.py b/pym/gentoolkit/revdep_rebuild/analyse.py |
15 |
index 079157a..6ef4d90 100644 |
16 |
--- a/pym/gentoolkit/revdep_rebuild/analyse.py |
17 |
+++ b/pym/gentoolkit/revdep_rebuild/analyse.py |
18 |
@@ -201,7 +201,7 @@ def main_checks2(broken, scanned_files, logger): |
19 |
|
20 |
|
21 |
def analyse(settings, logger, libraries=None, la_libraries=None, |
22 |
- libraries_links=None, binaries=None, _libs_to_check=set()): |
23 |
+ libraries_links=None, binaries=None, _libs_to_check=None): |
24 |
"""Main program body. It will collect all info and determine the |
25 |
pkgs needing rebuilding. |
26 |
|
27 |
@@ -211,6 +211,8 @@ def analyse(settings, logger, libraries=None, la_libraries=None, |
28 |
@rtype list: list of pkgs that need rebuilding |
29 |
""" |
30 |
|
31 |
+ if _libs_to_check == None: |
32 |
+ _libs_to_check = set() |
33 |
if libraries and la_libraries and libraries_links and binaries: |
34 |
logger.info(blue(' * ') + |
35 |
bold('Found a valid cache, skipping collecting phase')) |