aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-14 11:00:08 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-14 11:00:08 +0000
commitf4457d1600c531fde07735d3c3958e579376f840 (patch)
tree28a9e10b67adb2b3a90f6552a1403b477d61386c
parentc3e74f4363e272afb52b17ee068f0aa55e6dc479 (diff)
downloadrpmdrake-f4457d1600c531fde07735d3c3958e579376f840.tar
rpmdrake-f4457d1600c531fde07735d3c3958e579376f840.tar.gz
rpmdrake-f4457d1600c531fde07735d3c3958e579376f840.tar.bz2
rpmdrake-f4457d1600c531fde07735d3c3958e579376f840.tar.xz
rpmdrake-f4457d1600c531fde07735d3c3958e579376f840.zip
Make the software media manager cope with variables in urls (Michael Scherer)
-rwxr-xr-xedit-urpm-sources.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index e9cf0af7..2756588d 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -370,6 +370,7 @@ sub edit_callback {
my $row = selrow();
$row == -1 and return;
my $medium = $urpm->{media}[$row];
+ my $config = urpm::cfg::load_config($urpm->{config}, 1);
my $w = ugtk2->new(N("Edit a medium"), grab => 1, center => 1, transient => $mainw->{rwindow});
my ($url_entry, $hdlist_entry, $url, $with_hdlist);
gtkadd(
@@ -379,8 +380,8 @@ sub edit_callback {
0, Gtk2::Label->new(N("Editing medium \"%s\":", $medium->{name})),
0, create_packtable(
{},
- [ N("URL:"), $url_entry = gtkentry($medium->{url}) ],
- [ N("Relative path to synthesis/hdlist:"), $hdlist_entry = gtkentry($medium->{with_hdlist}) ],
+ [ N("URL:"), $url_entry = gtkentry($config->{$medium->{name}}{url}) ],
+ [ N("Relative path to synthesis/hdlist:"), $hdlist_entry = gtkentry($config->{$medium->{name}}{with_hdlist}) ],
),
0, Gtk2::HSeparator->new,
0, gtkpack(