From 7c4d5e03000d68b728a6997e0fc3b24c21c1ff14 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Tue, 25 Aug 2009 16:04:28 -0400 Subject: [PATCH] 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 --- genpkgmetadata.py | 5 +++++ 1 file changed, 5 insertions(+) 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=" = 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) -- 2.34.1