diff options
author | Pascal Terjan <pterjan@gmail.com> | 2014-10-12 23:36:02 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2014-10-12 23:36:02 +0000 |
commit | 69e09eb883ee3587d92596f281c88c6d999fdbc9 (patch) | |
tree | 7c8d6cb85dbaa49cc5ccb3f352fcd7659410e5fc | |
parent | caf0988849a34f08271a1cda56688fc62f453bde (diff) | |
download | iurt-69e09eb883ee3587d92596f281c88c6d999fdbc9.tar iurt-69e09eb883ee3587d92596f281c88c6d999fdbc9.tar.gz iurt-69e09eb883ee3587d92596f281c88c6d999fdbc9.tar.bz2 iurt-69e09eb883ee3587d92596f281c88c6d999fdbc9.tar.xz iurt-69e09eb883ee3587d92596f281c88c6d999fdbc9.zip |
Display errors before risking overwriting them0.6.23
-rwxr-xr-x | iurt | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |