[Rpm-metadata] genpkgmetadata.py

skvidal at osuosl.org skvidal at osuosl.org
Tue Aug 25 20:06:52 UTC 2009


 genpkgmetadata.py |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 7c4d5e03000d68b728a6997e0fc3b24c21c1ff14
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Tue Aug 25 16:04:28 2009 -0400

    add -n, --includepkg option to allow users to specify urls to pkgs to include
    in the repo on the cli - like a fully cli version of --pkglist/-i

diff --git a/genpkgmetadata.py b/genpkgmetadata.py
index 684417b..cf3dcd9 100755
--- a/genpkgmetadata.py
+++ b/genpkgmetadata.py
@@ -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)
         


More information about the Rpm-metadata mailing list