From kde-commits Thu Jan 17 14:53:07 2013 From: David Faure Date: Thu, 17 Jan 2013 14:53:07 +0000 To: kde-commits Subject: KDE/kdesdk/scripts Message-Id: <20130117145307.12DF4AC86A () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=135843439714018 SVN commit 1333483 by dfaure: Only rm -rf if a "git clone" fails, not if a "git pull" fails. M +4 -0 kde-checkout-list.pl --- trunk/KDE/kdesdk/scripts/kde-checkout-list.pl #1333482:1333483 @@ -143,7 +143,9 @@ if ( $doClone ) { my $command; + my $newCheckout = 0; if ( ! -d "$subdir" ) { + $newCheckout = 1; #modules without the "KDE/" in the branchname are: # kdebase/kate => only KDE/4.7 and above # kdeexamples => No branches @@ -173,8 +175,10 @@ $ohno = 0; } } + if ($newCheckout) { printf "REMOVING CLONE DUE TO GIT FAILURE\n"; runCommand("rm -rf $subdir"); + } if ($ohno) { if ($quitOnError) { printf "Exiting due to quit-on-error option\n";