Browse Source

respect defined architectures in amprolla_init

debianarchive-update
parazyd 6 years ago
parent
commit
bc9fc0927f
Signed by untrusted user: parazyd GPG Key ID: F0CB28FCF78637DE
  1. 1
      TODO.md
  2. 9
      amprolla_init.py

1
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)

9
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()

Loading…
Cancel
Save