amprolla

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

commit 970da152fe6a9f532b198fdcf3232f1a7ca755de
parent 62b608c6413ad650adf1d9f5e198ef00fd46704a
Author: parazyd <parazyd@dyne.org>
Date:   Thu,  6 Jul 2017 17:42:07 +0200

respect defined categories when downloading with amprolla_init

Diffstat:
Mamprolla_init.py | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/amprolla_init.py b/amprolla_init.py @@ -10,8 +10,8 @@ from os.path import join from multiprocessing import Pool from time import time -from lib.config import (aliases, arches, cpunm, mainrepofiles, repos, spooldir, - suites) +from lib.config import (aliases, arches, categories, cpunm, mainrepofiles, + repos, spooldir, suites) from lib.net import download from lib.parse import parse_release @@ -74,9 +74,10 @@ def main(): for k in release_contents: # if k.endswith('/binary-armhf/Packages.gz'): for a in arches: - if a in k: - urls = (join(url[0], k), join(url[1], k)) - tpl.append(urls) + for c in categories: + if a in k and ("/%s/" % c) in k: + urls = (join(url[0], k), join(url[1], k)) + tpl.append(urls) dlpool = Pool(cpunm) dlpool.map(download, tpl) dlpool.close()