twrite obsolete packages to separate files (per-suite) - amprolla - devuan's apt repo merger (HTM) git clone git://parazyd.org/amprolla.git (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit e8a312cf278e9a9e1ce47add0c384bc988c19e25 (DIR) parent 2884ba28bb23bd6c46afd4963ed1eb687776d250 (HTM) Author: parazyd <parazyd@dyne.org> Date: Mon, 6 Nov 2017 12:34:51 +0100 write obsolete packages to separate files (per-suite) Diffstat: M lib/package.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- (DIR) diff --git a/lib/package.py b/lib/package.py t@@ -137,11 +137,12 @@ def merge_packages(pkg1, pkg2, name1, name2, banned_packages=set(), pkg1_pkg = rewriter(pkg1_pkg, name1) new_pkgs[pkg] = pkg1_pkg if package_newer(pkg1_pkg, pkg2_pkg): - logtofile('oldpackages.txt', + logtofile('%s-oldpackages.txt' % globalvars.suite, '%s,%s,%s,%s\n' % (globalvars.suite, pkg1_pkg.get('Package'), pkg1_pkg.get('Version'), - pkg2_pkg.get('Version'))) + pkg2_pkg.get('Version')), + redo=True) elif pkg1_pkg: if not package_banned(pkg1_pkg, banned_packages): if rewriter: