projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
722cbfa
)
config: add rpm-specific option parser class
author
Markus Lehtonen
<markus.lehtonen@linux.intel.com>
Mon, 13 Feb 2012 13:01:22 +0000
(15:01 +0200)
committer
Markus Lehtonen
<markus.lehtonen@linux.intel.com>
Tue, 8 May 2012 08:39:40 +0000
(11:39 +0300)
Adds a new GbpOptionParserRpm class for handling rpm-specific options.
gbp/config.py
patch
|
blob
|
history
diff --git
a/gbp/config.py
b/gbp/config.py
index d406d1ecf161e75da8ac8c656228e3bbc2a41b6b..a79dc19595712367acb1635fa1a979ef0d2fdc5e 100644
(file)
--- a/
gbp/config.py
+++ b/
gbp/config.py
@@
-398,4
+398,16
@@
class GbpOptionParserDebian(GbpOptionParser):
'cleaner' : 'debuild -d clean',
} )
+class GbpOptionParserRpm(GbpOptionParser):
+ """
+ Handles commandline options and parsing of config files for rpm tools
+ """
+ defaults = dict(GbpOptionParser.defaults)
+ defaults.update( {
+ 'builder' : '',
+ 'cleaner' : '',
+ } )
+
+ help = dict(GbpOptionParser.help)
+
# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: