amprolla

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

commit a62802d37c2851b02ca789cc371a3b9fd7618ecb
parent bc499c81e91ae08bd9156016c93d3efb68cf5ef2
Author: parazyd <parazyd@dyne.org>
Date:   Sat, 27 May 2017 22:53:44 +0200

pylint; pep8

Diffstat:
Mamprolla-download | 1+
Mamprolla-init | 12++++++------
2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/amprolla-download b/amprolla-download @@ -25,6 +25,7 @@ roots = { release_file = 'Release' + def merge_files(repo, relfile): """ Loads the local release and call the merge process diff --git a/amprolla-init b/amprolla-init @@ -1,7 +1,6 @@ #!/usr/bin/env python3 from os.path import join -from pprint import pprint import lib.config as config from lib.net import download @@ -22,18 +21,19 @@ def pop_dirs(repo): suite = config.aliases[repodata['name']][j] elif repodata['skipmissing'] is True: continue - skips = ['jessie-security', 'ascii-security'] # XXX: hack + skips = ['jessie-security', 'ascii-security'] # XXX: hack if repo == 'debian' and j in skips: continue - pair = (join(baseurl, suite), join(baseurl.replace(repodata['host'], - config.spooldir), suite)) + pair = (join(baseurl, suite), + join(baseurl.replace(repodata['host'], + config.spooldir), suite)) urls.append(pair) return urls for dist in config.repos: - urls = pop_dirs(dist) - for url in urls: + dlurls = pop_dirs(dist) + for url in dlurls: for file in config.mainrepofiles: remote = join(url[0], file) local = join(url[1], file)