After a successful build, remove the scratch directory.
authorRichard W.M. Jones <rjones@redhat.com>
Sun, 25 Jan 2009 10:59:18 +0000 (10:59 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Sun, 25 Jan 2009 10:59:18 +0000 (10:59 +0000)
smock/smock.pl

index 2038a82..ff492ca 100755 (executable)
@@ -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";