amprolla

devuan's apt repo merger
git clone git://parazyd.org/amprolla.git
Log | Files | Refs | README | LICENSE

commit ef80197f590010831da710648a80e0f1927d829c
parent 1007576330d2f10a011e03651e24b696503b1299
Author: parazyd <parazyd@dyne.org>
Date:   Thu,  1 Jun 2017 01:45:58 +0200

rewrite all repositories

Diffstat:
Mamprolla_init.py | 8++++----
Mamprolla_merge.py | 6+++---
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/amprolla_init.py b/amprolla_init.py @@ -65,11 +65,11 @@ def main(): release_contents = parse_release(release_contents) # for k in release_contents.keys(): for k in release_contents: - # if k.endswith('/binary-armhf/Packages.gz'): + if k.endswith('/binary-armhf/Packages.gz'): # if k.endswith('Packages.gz'): - remote = join(url[0], k) - local = join(url[1], k) - download(remote, local) + remote = join(url[0], k) + local = join(url[1], k) + download(remote, local) if __name__ == '__main__': diff --git a/amprolla_merge.py b/amprolla_merge.py @@ -53,9 +53,9 @@ def devuan_rewrite(pkg, repo_name): any attributes. Currently only changes the filename if we include a package when repo_name == 'devuan'. """ - if repo_name == 'devuan': - pkg['Filename'] = pkg['Filename'].replace('pool/', 'pool/%s/' % - repos[repo_name]['name']) + # if repo_name == 'devuan': + pkg['Filename'] = pkg['Filename'].replace('pool/', 'pool/%s/' % + repos[repo_name]['name']) return pkg