Discussion:
[software/build-system/iurt] 01/01: Display errors before risking overwriting them
root-odJJhXpcy38dnm+
2014-10-12 23:36:23 UTC
Permalink
This is an automated email from the git hooks/post-receive script.

pterjan pushed a commit to branch master
in repository software/build-system/iurt.

commit 69e09eb883ee3587d92596f281c88c6d999fdbc9
Author: Pascal Terjan <pterjan-***@public.gmane.org>
Date: Sun Oct 12 23:36:02 2014 +0000

Display errors before risking overwriting them
---
Commit Link:
http://gitweb.mageia.org/software/build-system/iurt/commit/?id=69e09eb883ee3587d92596f281c88c6d999fdbc9

iurt | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/iurt b/iurt
index b8e9e1b..dea9b44 100755
--- a/iurt
+++ b/iurt
@@ -931,10 +931,10 @@ retry:
plog('OK', "build successful, copying packages to $local_spool.");
if (system("cp $chroot_tmp/home/$luser/rpmbuild/RPMS/*/*.rpm $local_spool &>/dev/null")) {
# If copy fails (like disk full), report a failure and delete partially copied files
+ plog('ERROR', "ERROR: could not copy rpm files from $chroot_tmp/home/$luser/rpmbuild/RPMS/ to $local_spool ($!)");
for my $package (@packages) {
unlink "$local_spool/$package";
}
- plog('ERROR', "ERROR: could not copy rpm files from $chroot_tmp/home/$luser/rpmbuild/RPMS/ to $local_spool ($!)");
}
}

@@ -943,9 +943,9 @@ retry:
unlink "$local_spool/$old_srpm";

if (system("cp $chroot_tmp/home/$luser/rpmbuild/SRPMS/$srpm $local_spool &>/dev/null")) {
- # If copy fails (like disk full), remove partially copied file and report a failure
- unlink "$local_spool/$srpm";
+ # If copy fails (like disk full), remove partially copied file
plog('ERROR', "ERROR: could not copy $srpm from $chroot_tmp/home/$luser/rpmbuild/SRPMS/ to $local_spool ($!)");
+ unlink "$local_spool/$srpm";
}
}
process_queue($config, \%run, \@wrong_rpm, 1);
--
Mageia Git Monkeys.
Loading...