diff options
author | Marcelo Leitner <mrl@mandriva.com> | 2007-06-27 14:02:50 +0000 |
---|---|---|
committer | Marcelo Leitner <mrl@mandriva.com> | 2007-06-27 14:02:50 +0000 |
commit | 96c6763bf4f936b7309f69a1df44eb93937be1ae (patch) | |
tree | 76015b88dc6e8a5756dfe1492df4aa385515575b /lib/Iurt | |
parent | 77b4bc5ef10a4dcd3448d8c84fe319692d185d6e (diff) | |
download | iurt-96c6763bf4f936b7309f69a1df44eb93937be1ae.tar iurt-96c6763bf4f936b7309f69a1df44eb93937be1ae.tar.gz iurt-96c6763bf4f936b7309f69a1df44eb93937be1ae.tar.bz2 iurt-96c6763bf4f936b7309f69a1df44eb93937be1ae.tar.xz iurt-96c6763bf4f936b7309f69a1df44eb93937be1ae.zip |
- Enhance error reporting.
Diffstat (limited to 'lib/Iurt')
-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; } |