genpkgmetadata.py

[email protected]
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
 genpkgmetadata.py |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 7c4d5e03000d68b728a6997e0fc3b24c21c1ff14
Author: Seth Vidal <[email protected]>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.