pbuilder-dist: some cleanup to --debug-echo's output.

This commit is contained in:
Siegfried-Angel Gevatter Pujals 2010-01-15 14:35:28 +01:00
parent ee9561ae59
commit dc291e72df

View File

@ -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__':