amprolla

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

commit 5d7bdbb57bcf9c78ae13e79c7550d2a120dfc1ce
parent 2666be9c051d80b7233cc43379b6c690c7e88fa5
Author: parazyd <parazyd@dyne.org>
Date:   Wed,  7 Jun 2017 16:23:34 +0200

release the brakes from updates; report total time on end of update

Diffstat:
Mamprolla_update.py | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/amprolla_update.py b/amprolla_update.py @@ -7,6 +7,7 @@ Perform incremental updates from os.path import join from multiprocessing import Pool +from time import time import requests from amprolla_merge import prepare_merge_dict, gen_release, merge @@ -114,7 +115,7 @@ def perform_update(suite, paths): mrgpool = Pool(4) mrgpool.map(merge, merge_list) - # generate release files + # generate Release files if we got any new files if needsmerge['downloads']: print('Generating Release...') gen_release(suite) @@ -127,8 +128,11 @@ def main(): roots = prepare_merge_dict() for suite, paths in roots.items(): perform_update(suite, paths) - break + # break if __name__ == '__main__': + t1 = time() main() + t2 = time() + print('total time: %s' % (t2 - t1))