summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-08-13 13:19:23 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-08-13 13:19:23 +0000
commit06b0ea7fed56ff6a652f33a62377778346b79adb (patch)
tree0bfe84c247f71f31e79195237a2d6d39257615eb /urpm.pm
parent36b6546f3fe2556d09ab62754df79829638a891c (diff)
downloadurpmi-06b0ea7fed56ff6a652f33a62377778346b79adb.tar
urpmi-06b0ea7fed56ff6a652f33a62377778346b79adb.tar.gz
urpmi-06b0ea7fed56ff6a652f33a62377778346b79adb.tar.bz2
urpmi-06b0ea7fed56ff6a652f33a62377778346b79adb.tar.xz
urpmi-06b0ea7fed56ff6a652f33a62377778346b79adb.zip
Save media.cfg files locally to map urpmi.cfg media to media.cfg
To make it possible to associate more metainformation with the media stored in urpmi.cfg, we need to be able to associate a given urpmi.cfg medium with the media.cfg files it was created from. To do that, we save media.cfg files locally in /etc/urpmi/mediacfg.d/$name with an additional 'url' or 'mirrorlist' files. Those files are used to resolve the relative names stored in media.cfg so that we can associate them with the absolute names stored in urpmi.cfg. The mediacfg.d dir is cleaned up when a medium is removed (if necessary).
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 848074bb..eba7fe51 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -146,7 +146,7 @@ sub set_env {
print "dropping virtual from $urpm->{config}\n";
system(q(perl -pi -e 's/^\s*virtual\s*$//' ) . $urpm->{config});
}
- $urpm->{configs_dir} = "$env/media.d";
+ $urpm->{mediacfgdir} = "$env/mediacfg.d";
$urpm->{skiplist} = "$env/skip.list";
$urpm->{instlist} = "$env/inst.list";
$urpm->{prefer_list} = "$env/prefer.list";
@@ -163,6 +163,7 @@ sub set_files {
my %h = (
config => "$urpmi_root/etc/urpmi/urpmi.cfg",
+ mediacfgdir => "$urpmi_root/etc/urpmi/mediacfg.d",
skiplist => prefer_rooted($urpmi_root, '/etc/urpmi/skip.list'),
instlist => prefer_rooted($urpmi_root, '/etc/urpmi/inst.list'),
prefer_list => prefer_rooted($urpmi_root, '/etc/urpmi/prefer.list'),