1 |
commit: a479fdadc1f806fa018887512cf4c32f6a298bd8 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 10 16:47:20 2014 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Feb 11 08:06:11 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=a479fdad |
7 |
|
8 |
revdep_rebuild: Fix missing logger variable in check_temp_files(). |
9 |
|
10 |
--- |
11 |
pym/gentoolkit/revdep_rebuild/cache.py | 3 ++- |
12 |
pym/gentoolkit/revdep_rebuild/rebuild.py | 2 +- |
13 |
2 files changed, 3 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/pym/gentoolkit/revdep_rebuild/cache.py b/pym/gentoolkit/revdep_rebuild/cache.py |
16 |
index 42bf1ea..0a250d3 100644 |
17 |
--- a/pym/gentoolkit/revdep_rebuild/cache.py |
18 |
+++ b/pym/gentoolkit/revdep_rebuild/cache.py |
19 |
@@ -67,7 +67,8 @@ def save_cache(logger, to_save={}, temp_path=DEFAULTS['DEFAULT_TMP_DIR']): |
20 |
|
21 |
|
22 |
|
23 |
-def check_temp_files(temp_path=DEFAULTS['DEFAULT_TMP_DIR'], max_delay=3600): |
24 |
+def check_temp_files(temp_path=DEFAULTS['DEFAULT_TMP_DIR'], max_delay=3600, |
25 |
+ logger=None): |
26 |
''' Checks if temporary files from previous run are still available |
27 |
and if they aren't too old |
28 |
@param temp_path is directory, where temporary files should be found |
29 |
|
30 |
diff --git a/pym/gentoolkit/revdep_rebuild/rebuild.py b/pym/gentoolkit/revdep_rebuild/rebuild.py |
31 |
index 48a8ec6..888fa47 100644 |
32 |
--- a/pym/gentoolkit/revdep_rebuild/rebuild.py |
33 |
+++ b/pym/gentoolkit/revdep_rebuild/rebuild.py |
34 |
@@ -218,7 +218,7 @@ def main(settings=None, logger=None): |
35 |
settings['PRETEND'] = True |
36 |
|
37 |
if settings['USE_TMP_FILES'] \ |
38 |
- and check_temp_files(settings['DEFAULT_TMP_DIR']): |
39 |
+ and check_temp_files(settings['DEFAULT_TMP_DIR'], logger=logger): |
40 |
libraries, la_libraries, libraries_links, binaries = read_cache( |
41 |
settings['DEFAULT_TMP_DIR']) |
42 |
assigned = analyse( |