aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@google.com>2014-01-18 09:50:51 -0800
committerPascal Terjan <pterjan@gmail.com>2014-01-19 05:13:33 +0000
commit21b8a3556aff1c9ac1b0f8defe8e9abb8a9d1b23 (patch)
tree93b14c82bb7739a63844eea44db3403b166ab783
parent1739a98da9f74d4180d876d520feef36ae7764b4 (diff)
downloadiurt-21b8a3556aff1c9ac1b0f8defe8e9abb8a9d1b23.tar
iurt-21b8a3556aff1c9ac1b0f8defe8e9abb8a9d1b23.tar.gz
iurt-21b8a3556aff1c9ac1b0f8defe8e9abb8a9d1b23.tar.bz2
iurt-21b8a3556aff1c9ac1b0f8defe8e9abb8a9d1b23.tar.xz
iurt-21b8a3556aff1c9ac1b0f8defe8e9abb8a9d1b23.zip
Record built packages to allow cleanup when only one arch fails
-rwxr-xr-xulri4
1 files changed, 3 insertions, 1 deletions
diff --git a/ulri b/ulri
index b24a7f8..fef4f06 100755
--- a/ulri
+++ b/ulri
@@ -394,6 +394,8 @@ foreach my $prefix (keys %pkg_tree) {
$error = 1;
last;
}
+ # Add the package to the list of built ones, in case we fail another arch and need to cleanup
+ push @{$ent->{rpms}}, $result_file;
}
next if $error;
@@ -466,7 +468,7 @@ foreach my $prefix (keys %pkg_tree) {
$compildone->{$prefix}{$media}{$arch} = 0;
}
- # Move already built packages to failures if one arch failed
+ # Move built packages to failures if one arch failed
foreach my $rpm (@{$ent->{rpms}}) {
my $file = "$done_dir/${prefix}_$rpm";
plog('DEBUG', "moving built rpm $file to $fail_dir/${prefix}_$rpm");