[projects/git-slug: 46/170] Long option for number of threads

glen glen at pld-linux.org
Mon Sep 21 21:42:40 CEST 2015


commit e4d51d2bdec82eca99693ab61549aa0b8ef8ff31
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Mon Sep 26 01:53:26 2011 +0100

    Long option for number of threads

 slug.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/slug.py b/slug.py
index 8e8303f..038ef7c 100755
--- a/slug.py
+++ b/slug.py
@@ -88,7 +88,7 @@ def create_packages(options):
 
 def fetch_packages(options):
     fetch_queue = queue.Queue()
-    for i in range(options.j):
+    for i in range(options.jobs):
         t = ThreadFetch(fetch_queue, options.packagesdir, options.depth)
         t.setDaemon(True)
         t.start()
@@ -170,7 +170,7 @@ common_options.add_argument('-u', '--user',
         help='the user name to register for pushes for new repositories')
 
 common_fetchoptions = argparse.ArgumentParser(add_help=False, parents=[common_options])
-common_fetchoptions.add_argument('-j', help='number of threads to use', default=4, type=int)
+common_fetchoptions.add_argument('-j', '--jobs', help='number of threads to use', default=4, type=int)
 common_fetchoptions.add_argument('-r', '--remoterefs', help='repository with list of all refs',
     default=os.path.expanduser('~/PLD_clone/Refs.git'))
 common_fetchoptions.add_argument('repopattern', nargs='*', default = ['*'])
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4ed64f73960519a2f4fd04c42950b2c96ae795c5



More information about the pld-cvs-commit mailing list