add --init-sytem to ./packages/bddeb

this way you can now do ./package/bddeb --init-system=sysvinit_deb
This commit is contained in:
Scott Moser 2013-07-25 17:01:57 -04:00
parent 5729fde120
commit 161e2da468
1 changed files with 8 additions and 0 deletions

View File

@ -94,12 +94,20 @@ def main():
default=False,
action='store_true')
parser.add_argument("--init-system", dest="init_system",
help=("build deb with INIT_SYSTEM=xxx"
" (default: %(default)s"),
default=os.environ.get("INIT_SYSTEM", "upstart"))
for ent in DEBUILD_ARGS:
parser.add_argument(ent, dest="debuild_args", action='append_const',
const=ent, help=("pass through '%s' to debuild" % ent))
args = parser.parse_args()
os.environ['INIT_SYSTEM'] = args.init_system
capture = True
if args.verbose:
capture = False