From afb27f1e1be73661af9fae356ad038c40a5db090 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Tue, 23 Nov 2010 08:56:23 +0200 Subject: [PATCH] Minor tweaks --- pbuilder-dist | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pbuilder-dist b/pbuilder-dist index 98c6091..00e5d49 100755 --- a/pbuilder-dist +++ b/pbuilder-dist @@ -376,20 +376,18 @@ def main(): # Parse the operation 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 ' 'to build.') exit(1) # Execute the pbuilder command if not '--debug-echo' in args: - p = subprocess.Popen(app.get_command(args))) - exit(p.wait()) + exit(subprocess.call(app.get_command(args))) else: print app.get_command([arg for arg in args if arg != '--debug-echo']) if __name__ == '__main__': - try: main() except KeyboardInterrupt: