Add a version to options.
Reorder options logically Clean up some comments
This commit is contained in:
parent
fba101d3fc
commit
5fa12944df
9
pungi
9
pungi
@ -135,18 +135,17 @@ if __name__ == '__main__':
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
def get_arguments():
|
def get_arguments():
|
||||||
# hack job for now, I'm sure this could be better for our uses
|
parser = OptionParser(version="%prog 0.2.4")
|
||||||
parser = OptionParser()
|
|
||||||
parser.add_option("--destdir", default="*CONFFILE*", dest="destdir",
|
parser.add_option("--destdir", default="*CONFFILE*", dest="destdir",
|
||||||
help='destination directory (defaults to current directory)')
|
help='destination directory (defaults to current directory)')
|
||||||
parser.add_option("-c", "--conf", default='/etc/pungi/pungi.conf', dest="config",
|
parser.add_option("-c", "--conf", default='/etc/pungi/pungi.conf', dest="config",
|
||||||
help='Config file to use')
|
help='Config file to use')
|
||||||
parser.add_option("--all-stages", action="store_true", default=True, dest="do_all",
|
parser.add_option("--all-stages", action="store_true", default=True, dest="do_all",
|
||||||
help="Enable ALL stages")
|
help="Enable ALL stages")
|
||||||
parser.add_option("-B", action="store_true", default=False, dest="do_buildinstall",
|
|
||||||
help="Flag to enable processing the BuildInstall stage")
|
|
||||||
parser.add_option("-G", action="store_true", default=False, dest="do_gather",
|
parser.add_option("-G", action="store_true", default=False, dest="do_gather",
|
||||||
help="Flag to enable processing the Gather stage")
|
help="Flag to enable processing the Gather stage")
|
||||||
|
parser.add_option("-B", action="store_true", default=False, dest="do_buildinstall",
|
||||||
|
help="Flag to enable processing the BuildInstall stage")
|
||||||
parser.add_option("-P", action="store_true", default=False, dest="do_packageorder",
|
parser.add_option("-P", action="store_true", default=False, dest="do_packageorder",
|
||||||
help="Flag to enable processing the Package Order stage")
|
help="Flag to enable processing the Package Order stage")
|
||||||
parser.add_option("-S", action="store_true", default=False, dest="do_splittree",
|
parser.add_option("-S", action="store_true", default=False, dest="do_splittree",
|
||||||
@ -164,7 +163,7 @@ if __name__ == '__main__':
|
|||||||
return (opts, args)
|
return (opts, args)
|
||||||
|
|
||||||
def get_packagelist(manifest):
|
def get_packagelist(manifest):
|
||||||
# Get the list of packages from the comps file
|
# Get the list of packages from the manifest file
|
||||||
try:
|
try:
|
||||||
manifestfile = open(manifest, 'r')
|
manifestfile = open(manifest, 'r')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user