summaryrefslogtreecommitdiffstats
path: root/scripts/makeupdates
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-08-10 15:13:47 -0500
committerDavid Lehman <dlehman@redhat.com>2009-08-17 17:02:08 -0500
commit2c2b2a5b9163802a4a7afbcb2143c970f3a5b712 (patch)
treec579d4e2e4a012fdba77242891daa39c43849d83 /scripts/makeupdates
parentb44b268438aa5bd7c86b7ec647b7afef3f3ddb3d (diff)
downloadanaconda-2c2b2a5b9163802a4a7afbcb2143c970f3a5b712.tar.gz
anaconda-2c2b2a5b9163802a4a7afbcb2143c970f3a5b712.tar.xz
anaconda-2c2b2a5b9163802a4a7afbcb2143c970f3a5b712.zip
Add support for specifying a tag to makeupdates.
Diffstat (limited to 'scripts/makeupdates')
-rwxr-xr-xscripts/makeupdates10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/makeupdates b/scripts/makeupdates
index c6c663d81..338e44fb3 100755
--- a/scripts/makeupdates
+++ b/scripts/makeupdates
@@ -166,10 +166,11 @@ def main(argv):
spec = os.path.realpath(cwd + '/anaconda.spec.in')
updates = cwd + '/updates'
keep, compile, help, unknown = False, False, False, False
+ tag = None
try:
- opts, args = getopt.getopt(sys.argv[1:], 'kc?',
- ['keep', 'compile', 'help'])
+ opts, args = getopt.getopt(sys.argv[1:], 't:kc?',
+ ['tag=', 'keep', 'compile', 'help'])
except getopt.GetoptError:
help = True
@@ -180,6 +181,8 @@ def main(argv):
compile = True
elif o in ('-?', '--help'):
help = True
+ elif o in ('-t', '--tag'):
+ tag = a
else:
unknown = True
@@ -195,7 +198,8 @@ def main(argv):
sys.stderr.write("You must be at the top level of the anaconda source tree.\n")
sys.exit(1)
- tag = getArchiveTag(configure, spec)
+ if not tag:
+ tag = getArchiveTag(configure, spec)
if not os.path.isdir(updates):
os.makedirs(updates)