From dc291e72dfc9b073cfb2596d91361c7eddd9d654 Mon Sep 17 00:00:00 2001 From: Siegfried-Angel Gevatter Pujals Date: Fri, 15 Jan 2010 14:35:28 +0100 Subject: [PATCH] pbuilder-dist: some cleanup to --debug-echo's output. --- pbuilder-dist | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pbuilder-dist b/pbuilder-dist index 432357c..4afcd29 100755 --- a/pbuilder-dist +++ b/pbuilder-dist @@ -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__':