mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 16:11:15 +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:
|
if remaining_arguments:
|
||||||
arguments.extend(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):
|
def ask(question):
|
||||||
""" ask(question) -> string
|
""" ask(question) -> string
|
||||||
@ -337,7 +338,8 @@ def main():
|
|||||||
if not '--debug-echo' in args:
|
if not '--debug-echo' in args:
|
||||||
sys.exit(os.system(app.get_command(args)))
|
sys.exit(os.system(app.get_command(args)))
|
||||||
else:
|
else:
|
||||||
print app.get_command(args)
|
print app.get_command((arg for arg in args if arg)).replace(
|
||||||
|
' --debug-echo', '')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user