trespect defined categories when downloading with amprolla_init - 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 970da152fe6a9f532b198fdcf3232f1a7ca755de (DIR) parent 62b608c6413ad650adf1d9f5e198ef00fd46704a (HTM) Author: parazyd <parazyd@dyne.org> Date: Thu, 6 Jul 2017 17:42:07 +0200 respect defined categories when downloading with amprolla_init Diffstat: M amprolla_init.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) --- (DIR) diff --git a/amprolla_init.py b/amprolla_init.py t@@ -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 t@@ -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()