[dak/security] And another place to kick nfu
---
ChangeLog | 2 ++
dak/cruft_report.py | 7 ++++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d29d7f7..9ee80a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
* dak/cruft_report.py (parse_nfu): call utils.warn instead of warn
(main): Only do the nfu stuff if nfu is a check we want to run
later.
+ (main): And another place where we dont want to do nfu foo unless
+ we need nfu
* dak/make_suite_file_list.py (main): Fix a bug that has been
there for ages, but "just" never triggered.
diff --git a/dak/cruft_report.py b/dak/cruft_report.py
index 8640ea6..fab47bf 100755
--- a/dak/cruft_report.py
+++ b/dak/cruft_report.py
@@ -472,9 +472,10 @@ def main ():
duplicate_bins.setdefault(key, [])
if package not in duplicate_bins[key]:
duplicate_bins[key].append(package)
- if package in nfu_entries and \
- version != source_versions[source]: # only suggest to remove out-of-date packages
- nfu_packages[architecture].append((package,version,source_versions[source]))
+ if "nfu" in checks:
+ if package in nfu_entries and \
+ version != source_versions[source]: # only suggest to remove out-of-date packages
+ nfu_packages[architecture].append((package,version,source_versions[source]))
packages.close()
os.unlink(temp_filename)
--
1.5.6.5
Reply to: