diff options
Diffstat (limited to 'lib/Iurt/Urpmi.pm')
-rw-r--r-- | lib/Iurt/Urpmi.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm index 9fdefbc..4d4dc19 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -98,6 +98,7 @@ sub urpmi_command { if (!add_media($self, $chroot_tmp, $m_name, "$m_name $run->{chrooted_media}/media/$m")) { $run->{chrooted_urpmi} = 0; + plog ('ERROR', "Failed to add media $m_name. Disabling chrooted_urpmi."); return; } } @@ -105,6 +106,7 @@ sub urpmi_command { if (!add_media($self, $chroot_tmp, 'Main', "--distrib $run->{chrooted_media}")) { if (!add_media($self, $chroot_tmp, 'Main', "--wget --distrib $run->{chrooted_media}")) { $run->{chrooted_urpmi} = 0; + plog ('ERROR', "Failed to add media $m_name. Disabling chrooted_urpmi."); return; } } @@ -128,6 +130,7 @@ sub urpmi_command { close ($DP); if ($#contents <= 1) { # Just entries: . .. + plog ('DEBUG', "$url has no packages, skipping it."); next; } @@ -144,7 +147,7 @@ sub urpmi_command { $f =~ /(\.rpm|^hdlist.cz)$/ or next; if (!link "$local_media/$f", "$chroot_tmp/iurt_media") { if (!copy "$local_media/$f", "$chroot_tmp/iurt_media") { - plog("ERROR: could not copy file $local_media/$f to $chroot_tmp/iurt_media"); + plog('ERROR', "could not copy file $local_media/$f to $chroot_tmp/iurt_media"); $next = 1; last; } |