tdon't rewrite package paths if they were rewritten already - amprolla - devuan's apt repo merger HTML git clone git://parazyd.org/amprolla.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit a5d56d1eb501ba877b95ecbf846914db5b42b1a3 DIR parent 6acb2ac57a529eb655c2a2df4c3dab0ed8934b90 HTML Author: parazyd <parazyd@dyne.org> Date: Tue, 11 Jul 2017 13:56:56 +0200 don't rewrite package paths if they were rewritten already tthis should allow for merging on top of already merged repositories Diffstat: M amprolla_merge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/amprolla_merge.py b/amprolla_merge.py t@@ -57,10 +57,10 @@ def devuan_rewrite(pkg, repo_name): any attributes. """ - if 'Filename' in pkg: + if 'Filename' in pkg and repos[repo_name]['name'] not in pkg['Filename']: pkg['Filename'] = pkg['Filename'].replace('pool/', 'pool/%s/' % repos[repo_name]['name']) - if 'Directory' in pkg: + if 'Directory' in pkg and repos[repo_name]['name'] not in pkg['Directory']: pkg['Directory'] = pkg['Directory'].replace('pool/', 'pool/%s/' % repos[repo_name]['name'])