From 9962896c3252abbabcfcc64eada30d399683317b Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 9 Jun 2006 20:27:50 +0000 Subject: [PATCH] 2006-06-09 20:27:50 by steve BUGFIX: debootstrap doesn't like '--verbose' to be at the end of the line. --- bin/xt-install-image | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/bin/xt-install-image b/bin/xt-install-image index 3ca00d9..6c889ba 100755 --- a/bin/xt-install-image +++ b/bin/xt-install-image @@ -79,7 +79,7 @@ Install the distribution specified by the B<--dist> argument using the debootstr -- http://www.steve.org.uk/ - $Id: xt-install-image,v 1.10 2006-06-09 19:55:10 steve Exp $ + $Id: xt-install-image,v 1.11 2006-06-09 20:27:50 steve Exp $ =cut @@ -234,7 +234,7 @@ sub parseCommandLineArguments if ( $VERSION ) { - my $REVISION = '$Revision: 1.10 $'; + my $REVISION = '$Revision: 1.11 $'; if ( $REVISION =~ /1.([0-9.]+) / ) { @@ -389,19 +389,21 @@ sub installDebootstrapImage print( "Done\n" ); } - # - # This is the command we'll run - # - my $command = "/usr/sbin/debootstrap $CONFIG{'dist'} $CONFIG{'location'} $CONFIG{'mirror'}"; - # # Propogate the --verbose option if we've been given it. # + my $VERBOSE = ''; if ( $CONFIG{'verbose'} ) { - $command .= " --verbose"; + $VERBOSE = "--verbose"; } + # + # This is the command we'll run + # + my $command = "/usr/sbin/debootstrap $VERBOSE $CONFIG{'dist'} $CONFIG{'location'} $CONFIG{'mirror'}"; + + # # Run the command. #