mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-29 11:51:08 +00:00
Minor tweaks
This commit is contained in:
parent
b78b21f43e
commit
afb27f1e1b
@ -376,20 +376,18 @@ def main():
|
|||||||
# Parse the operation
|
# Parse the operation
|
||||||
args = app.set_operation(args.pop(0)) + args
|
args = app.set_operation(args.pop(0)) + args
|
||||||
|
|
||||||
if app.operation == 'build' and not '.dsc' in ' '.join(args):
|
if app.operation == 'build' and '.dsc' not in ' '.join(args):
|
||||||
print >> stderr, ('Error: You have to specify a .dsc file if you want '
|
print >> stderr, ('Error: You have to specify a .dsc file if you want '
|
||||||
'to build.')
|
'to build.')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
# Execute the pbuilder command
|
# Execute the pbuilder command
|
||||||
if not '--debug-echo' in args:
|
if not '--debug-echo' in args:
|
||||||
p = subprocess.Popen(app.get_command(args)))
|
exit(subprocess.call(app.get_command(args)))
|
||||||
exit(p.wait())
|
|
||||||
else:
|
else:
|
||||||
print app.get_command([arg for arg in args if arg != '--debug-echo'])
|
print app.get_command([arg for arg in args if arg != '--debug-echo'])
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
try:
|
try:
|
||||||
main()
|
main()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user