diff options
author | Mike Fulbright <msf@redhat.com> | 2002-02-22 00:58:34 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2002-02-22 00:58:34 +0000 |
commit | b8f9790981b697016dbb06e417282266bb0621bb (patch) | |
tree | 565206c97bbd4fe007cf3b5e5f536566d3d5efc2 /scripts | |
parent | b9ea0d747e91f5a5d79490f96a68d4c822e5bea5 (diff) | |
download | anaconda-b8f9790981b697016dbb06e417282266bb0621bb.tar.gz anaconda-b8f9790981b697016dbb06e417282266bb0621bb.tar.xz anaconda-b8f9790981b697016dbb06e417282266bb0621bb.zip |
my bad
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/splitdistro | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/splitdistro b/scripts/splitdistro index fd65e79ef..01d0089f4 100755 --- a/scripts/splitdistro +++ b/scripts/splitdistro @@ -84,12 +84,14 @@ startedAt = time.time() fns = {} -(args, extra) = getopt.getopt(sys.argv[1:], '', [ 'fileorder=' ]) +(args, extra) = getopt.getopt(sys.argv[1:], '', [ 'fileorder=', 'release=' ]) + if len(extra) != 2: print "splitdistro --fileorder <file> [--release <comment>] <toppath> <arch>" sys.exit(1) releasestr = "" +packageOrderFile = None for n in args: (str, arg) = n if str == '--fileorder': @@ -97,6 +99,11 @@ for n in args: if str == '--release': releasestr = arg +if not packageOrderFile: + print "splitdistro --fileorder <file> [--release <comment>] <toppath> <arch>" + sys.exit(1) + + arch = extra[1] distDir = os.path.normpath(extra[0] + "/" + arch) srcDir = os.path.normpath(extra[0] + "/SRPMS") |