add -n, --includepkg option to allow users to specify urls to pkgs to include
authorSeth Vidal <skvidal@fedoraproject.org>
Tue, 25 Aug 2009 20:04:28 +0000 (16:04 -0400)
committerSeth Vidal <skvidal@fedoraproject.org>
Tue, 25 Aug 2009 20:04:28 +0000 (16:04 -0400)
in the repo on the cli - like a fully cli version of --pkglist/-i

genpkgmetadata.py

index 684417bdade939c91525128624bdb032ee5458bc..cf3dcd9c807d0e460e484268c37c9f9e7a37f36b 100755 (executable)
@@ -84,6 +84,8 @@ def parse_args(args, conf):
     parser.add_option("-i", "--pkglist", default=None, 
         help="use only the files listed in this file from the" \
              "directory specified")
+    parser.add_option("-n", "--includepkg", default=[], action="append",
+        help="add this pkg to the list - can be specified multiple times")
     parser.add_option("-o", "--outputdir", default=None,
         help="<dir> = optional directory to output to")
     parser.add_option("-S", "--skip-symlinks", dest="skip_symlinks",
@@ -168,6 +170,9 @@ def parse_args(args, conf):
             
     conf.pkglist = lst
 
+    if conf.includepkg:
+        conf.pkglist.extend(conf.includepkg)
+        
     if conf.changelog_limit: # make sure it is an int, not a string
         conf.changelog_limit = int(conf.changelog_limit)