| Date: Mon, 4 Dec 2017 17:36:08 +0100
Fix bug where pool would get replaced where it should not be
Reported by: Daniel Abrecht
https://lists.dyne.org/lurker/message/20171204.155159.5b3b95fb.en.html
Diffstat:
M amprolla_merge.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- |
| t@@ -60,10 +60,10 @@ def devuan_rewrite(pkg, repo_name):
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'])
+ repos[repo_name]['name'], 1)
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'])
+ repos[repo_name]['name'], 1)
return pkg
|