trewrite all repositories - 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 ef80197f590010831da710648a80e0f1927d829c (DIR) parent 1007576330d2f10a011e03651e24b696503b1299 (HTM) Author: parazyd <parazyd@dyne.org> Date: Thu, 1 Jun 2017 01:45:58 +0200 rewrite all repositories Diffstat: M amprolla_init.py | 8 ++++---- M amprolla_merge.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) --- (DIR) diff --git a/amprolla_init.py b/amprolla_init.py t@@ -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__': (DIR) diff --git a/amprolla_merge.py b/amprolla_merge.py t@@ -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