aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt
diff options
context:
space:
mode:
authorMarcelo Leitner <mrl@mandriva.com>2007-06-27 14:25:56 +0000
committerMarcelo Leitner <mrl@mandriva.com>2007-06-27 14:25:56 +0000
commitfa3742ccd7768aa62b981b29307538f50d537983 (patch)
treea9333b4ddf5cbf48c67e1f3e0cbb9a1abb3bc48d /lib/Iurt
parente3e4da59cfe87b975f789f61d5d9a89cbdb0532a (diff)
downloadiurt-fa3742ccd7768aa62b981b29307538f50d537983.tar
iurt-fa3742ccd7768aa62b981b29307538f50d537983.tar.gz
iurt-fa3742ccd7768aa62b981b29307538f50d537983.tar.bz2
iurt-fa3742ccd7768aa62b981b29307538f50d537983.tar.xz
iurt-fa3742ccd7768aa62b981b29307538f50d537983.zip
- We do not run chrooted, so we must prefix the media path with the chroot
info.
Diffstat (limited to 'lib/Iurt')
-rw-r--r--lib/Iurt/Urpmi.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm
index 2cc01c3..4343f8f 100644
--- a/lib/Iurt/Urpmi.pm
+++ b/lib/Iurt/Urpmi.pm
@@ -126,7 +126,7 @@ sub urpmi_command {
# Check if the media is not empty, as add_media will abort if it fails
my $DP;
- if (!opendir ($DP, $url)) {
+ if (!opendir ($DP, "$chroot_tmp/$url")) {
plog ('ERROR', "Failed to add additional media at $url: $!");
next;
}