From: Richard W.M. Jones <"Richard W.M. Jones "> Date: Sun, 25 Jan 2009 10:59:18 +0000 (+0000) Subject: After a successful build, remove the scratch directory. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=5154438846da746d8c64129b8c28c573c4d3c408;p=fedora-mingw.git After a successful build, remove the scratch directory. --- diff --git a/smock/smock.pl b/smock/smock.pl index 2038a82..ff492ca 100755 --- a/smock/smock.pl +++ b/smock/smock.pl @@ -360,7 +360,10 @@ foreach my $arch (@arches) { system ("mv $scratchdir/*.rpm $localrepo/$distro/$arch/RPMS") == 0 or die "mv"; my_mkdir "$localrepo/$distro/$arch/logs/$name-$version-$release"; system ("mv $scratchdir/*.log $localrepo/$distro/$arch/logs/$name-$version-$release/") == 0 or die "mv"; + system "rm -rf $scratchdir"; + createrepo ($arch, $distro); + } else { push @errors, "$name-$distro-$arch";