diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2016-11-05 15:38:08 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2016-11-05 15:38:08 +0100 |
commit | f372e877cb32a6c009e29ff9ddf1a14f8b2fd216 (patch) | |
tree | be50c72a1a883aa07cad805d44a0cda906285997 /MgaRepo/commands/buildrpm.py | |
parent | 8f51e35c875c9cbb4637cbf8796ee66a871ba57f (diff) | |
download | mgarepo-f372e877cb32a6c009e29ff9ddf1a14f8b2fd216.tar mgarepo-f372e877cb32a6c009e29ff9ddf1a14f8b2fd216.tar.gz mgarepo-f372e877cb32a6c009e29ff9ddf1a14f8b2fd216.tar.bz2 mgarepo-f372e877cb32a6c009e29ff9ddf1a14f8b2fd216.tar.xz mgarepo-f372e877cb32a6c009e29ff9ddf1a14f8b2fd216.zip |
Revert to 1.12.3 state
Diffstat (limited to 'MgaRepo/commands/buildrpm.py')
-rw-r--r-- | MgaRepo/commands/buildrpm.py | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/MgaRepo/commands/buildrpm.py b/MgaRepo/commands/buildrpm.py deleted file mode 100644 index a9230e4..0000000 --- a/MgaRepo/commands/buildrpm.py +++ /dev/null @@ -1,43 +0,0 @@ -from MgaRepo.command import do_command -from MgaRepo.rpmutil import build_rpm -from optparse import * - -HELP = """\ -Usage: mgarepo buildrpm [OPTIONS] - -Builds the binary RPM(s) (.rpm) file(s) of a given package. - -Options: - -bX Build stage option, where X is stage, default is -bb - -I Don't automatically try install missing build dependencies - -L Disable rpmlint check of packages built - -P USER Define the RPM packager information to USER - -d Use DNF - -q Quiet build output - -s Jump to specific build stage (--short-circuit) - -l Use subversion log to build rpm %changelog - -F Do not use full name & email for packagers in %changelog - -- Options and arguments following will be passed to rpmbuild - -""" - -def parse_options(): - parser = OptionParser(HELP) - parser.add_option("-b", dest="build_cmd", default="a") - parser.add_option("-I", dest="installdeps", action="store_false", default=True) - parser.add_option("-L", dest="rpmlint", action="store_false", default=True) - parser.add_option("-P", dest="packager", default="") - parser.add_option("-d", "--dnf", dest="use_dnf", action="store_true", default=False) - parser.add_option("-q", "--quiet", dest="verbose", action="store_false", default=True) - parser.add_option("-s", "--short-circuit", dest="short_circuit", action="store_true", default=False) - parser.add_option("-l", dest="svnlog", action="store_true", default=False) - parser.add_option("-F", dest="fullnames", default=True, - action="store_false") - opts, args = parser.parse_args() - opts.rpmargs = parser.rargs - return opts - -def main(): - do_command(parse_options, build_rpm) - -# vim:et:ts=4:sw=4 |