aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarcelo Leitner <mrl@mandriva.com>2007-06-27 14:19:17 +0000
committerMarcelo Leitner <mrl@mandriva.com>2007-06-27 14:19:17 +0000
commita88891ffb84269fb315ad88a92b102543ec08b76 (patch)
treed23c74bfd88eea8d5a49756549db1ad6a74813af /lib
parent9dc7a3c41d8c5a5d44b0db016b8ef4edfca7eded (diff)
downloadiurt-a88891ffb84269fb315ad88a92b102543ec08b76.tar
iurt-a88891ffb84269fb315ad88a92b102543ec08b76.tar.gz
iurt-a88891ffb84269fb315ad88a92b102543ec08b76.tar.bz2
iurt-a88891ffb84269fb315ad88a92b102543ec08b76.tar.xz
iurt-a88891ffb84269fb315ad88a92b102543ec08b76.zip
- Fix namespace issue.
Diffstat (limited to 'lib')
-rw-r--r--lib/Iurt/Urpmi.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm
index b92c77d..2cc01c3 100644
--- a/lib/Iurt/Urpmi.pm
+++ b/lib/Iurt/Urpmi.pm
@@ -125,7 +125,8 @@ sub urpmi_command {
}
# Check if the media is not empty, as add_media will abort if it fails
- if (!opendir (my $DP, $url)) {
+ my $DP;
+ if (!opendir ($DP, $url)) {
plog ('ERROR', "Failed to add additional media at $url: $!");
next;
}