mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
pbuilder-dist: some cleanup to --debug-echo's output.
This commit is contained in:
parent
ee9561ae59
commit
dc291e72df
@ -239,7 +239,8 @@ class pbuilder_dist:
|
||||
if remaining_arguments:
|
||||
arguments.extend(remaining_arguments)
|
||||
|
||||
return self.auth + ' /usr/sbin/' + self.builder + ' ' + ' '.join(arguments)
|
||||
return '%s /usr/bin/%s %s' % (self.auth, self.builder,
|
||||
' '.join(arguments))
|
||||
|
||||
def ask(question):
|
||||
""" ask(question) -> string
|
||||
@ -337,7 +338,8 @@ def main():
|
||||
if not '--debug-echo' in args:
|
||||
sys.exit(os.system(app.get_command(args)))
|
||||
else:
|
||||
print app.get_command(args)
|
||||
print app.get_command((arg for arg in args if arg)).replace(
|
||||
' --debug-echo', '')
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user