[projects/git-slug: 36/170] Option --nonepkgs for update subcommand

glen glen at pld-linux.org
Mon Sep 21 21:41:50 CEST 2015


commit d2e2ed25ea6ffb1a66be989813fde05499c3aadd
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Wed Sep 21 14:51:41 2011 +0100

    Option --nonepkgs for update subcommand
    
    If there is a 'newpkgs = yes' entry in configuration file there is no
    way to switch it off from command line. This commit provides as an
    option.

 slug.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/slug.py b/slug.py
index 3033027..b88f825 100755
--- a/slug.py
+++ b/slug.py
@@ -172,6 +172,7 @@ update.add_argument('-P', '--prune', help='prune git repositories that do no exi
 update.add_argument('--depth', help='depth of fetch', default=0)
 update.add_argument('-n', '--newpkgs', help='download packages that do not exist on local side',
         action='store_true')
+update.add_argument('-nn', '--nonewpkgs', help='do not download new packages', dest='newpkgs', action='store_false')
 update.add_argument('repopattern', nargs='*', default = ['*'])
 update.set_defaults(func=fetch_packages, omitexisting=False)
 
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list