amprolla

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

commit bc9fc0927f2f256f2902fa06a7f8095b09be32e3
parent f46479d83e4ef4fdf4a050b281755a6908151f14
Author: parazyd <parazyd@dyne.org>
Date:   Thu, 29 Jun 2017 14:40:59 +0200

respect defined architectures in amprolla_init

Diffstat:
MTODO.md | 1-
Mamprolla_init.py | 9++++++---
2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/TODO.md b/TODO.md @@ -1,7 +1,6 @@ amprolla TODO ============= -* Fix amprolla_init.py to honor defined architectures * Import devuan/debian keyrings as git submodules and make a script to verify them via a keyserver * Make obsolete package logging aware of the suite they're in (HELP NEEDED) diff --git a/amprolla_init.py b/amprolla_init.py @@ -10,7 +10,8 @@ from os.path import join from multiprocessing import Pool from time import time -from lib.config import aliases, cpunm, mainrepofiles, repos, spooldir, suites +from lib.config import (aliases, arches, cpunm, mainrepofiles, repos, spooldir, + suites) from lib.net import download from lib.parse import parse_release @@ -72,8 +73,10 @@ def main(): tpl = [] for k in release_contents: # if k.endswith('/binary-armhf/Packages.gz'): - urls = (join(url[0], k), join(url[1], k)) - tpl.append(urls) + for a in arches: + if a in k: + urls = (join(url[0], k), join(url[1], k)) + tpl.append(urls) dlpool = Pool(cpunm) dlpool.map(download, tpl) dlpool.close()