tpylint; pep8 - 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 a62802d37c2851b02ca789cc371a3b9fd7618ecb
 (DIR) parent bc499c81e91ae08bd9156016c93d3efb68cf5ef2
 (HTM) Author: parazyd <parazyd@dyne.org>
       Date:   Sat, 27 May 2017 22:53:44 +0200
       
       pylint; pep8
       
       Diffstat:
         M amprolla-download                   |       1 +
         M amprolla-init                       |      12 ++++++------
       
       2 files changed, 7 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/amprolla-download b/amprolla-download
       t@@ -25,6 +25,7 @@ roots = {
        
        release_file = 'Release'
        
       +
        def merge_files(repo, relfile):
            """
            Loads the local release and call the merge process
 (DIR) diff --git a/amprolla-init b/amprolla-init
       t@@ -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
       t@@ -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)