From 5154438846da746d8c64129b8c28c573c4d3c408 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] After a successful build, remove the scratch directory. --- smock/smock.pl | 3 +++ 1 file changed, 3 insertions(+) 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"; -- 1.8.3.1