* pbuilder-dist, doc/pbuilder-dist.1:

- Add "--debug-echo" option which prints the resulting pbuilder/cowbuilder
     commands instead of executing it.
This commit is contained in:
Siegfried-Angel Gevatter Pujals 2009-11-17 19:50:26 +01:00
parent a32b4c0e43
commit d97b54fc0a
3 changed files with 15 additions and 2 deletions

7
debian/changelog vendored
View File

@ -15,7 +15,12 @@ ubuntu-dev-tools (0.83) UNRELEASED; urgency=low
[ Kees Cook ] [ Kees Cook ]
* mk-sbuild-lv: switch to ext4 by default. * mk-sbuild-lv: switch to ext4 by default.
-- Kees Cook <kees@ubuntu.com> Tue, 10 Nov 2009 17:16:56 -0800 [ Siegfried-Angel Gevatter Pujals ]
* pbuilder-dist, doc/pbuilder-dist.1:
- Add "--debug-echo" option which prints the resulting pbuilder/cowbuilder
commands instead of executing it.
-- Siegfried-Angel Gevatter Pujals <rainct@ubuntu.com> Tue, 17 Nov 2009 19:44:44 +0100
ubuntu-dev-tools (0.82) lucid; urgency=low ubuntu-dev-tools (0.82) lucid; urgency=low

View File

@ -58,6 +58,11 @@ For example, if \fBbuild\fP is the option, you will need to also specify
a .dsc file. As a special feature, if you specify a .dsc file you can a .dsc file. As a special feature, if you specify a .dsc file you can
skip the \fBbuild\fP option and this script will automatically assume that skip the \fBbuild\fP option and this script will automatically assume that
building is the action you want to do. building is the action you want to do.
.br
You may also specify \fB--debug-echo\fP so that the \fBpbuilder\fP/
\fBcowbuilder\fP command which would normally be executed is just printed
on the standard output instead. This is useful for debugging
\fBpbuilder-dist\fP.
.SH EXAMPLES .SH EXAMPLES
.TP .TP

View File

@ -333,7 +333,10 @@ def main():
sys.exit(1) sys.exit(1)
# Execute the pbuilder command # Execute the pbuilder command
sys.exit(os.system(app.get_command(args))) if not '--debug-echo' in args:
sys.exit(os.system(app.get_command(args)))
else:
print app.get_command(args)
if __name__ == '__main__': if __name__ == '__main__':