aboutsummaryrefslogtreecommitdiffstats
path: root/edit-urpm-sources.pl
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-08-29 11:46:59 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-08-29 11:46:59 +0000
commitffd943cbb68c9f3a2ce508b9391735c7a17a8335 (patch)
treef71ada51e69fbf47274800eb2191f39c595e6915 /edit-urpm-sources.pl
parent94ffe6c186061726fb727547d4f60aaf723348b5 (diff)
downloadrpmdrake-ffd943cbb68c9f3a2ce508b9391735c7a17a8335.tar
rpmdrake-ffd943cbb68c9f3a2ce508b9391735c7a17a8335.tar.gz
rpmdrake-ffd943cbb68c9f3a2ce508b9391735c7a17a8335.tar.bz2
rpmdrake-ffd943cbb68c9f3a2ce508b9391735c7a17a8335.tar.xz
rpmdrake-ffd943cbb68c9f3a2ce508b9391735c7a17a8335.zip
handle subdirectory in "updates" for special
Mandrake issues such as corporate/clustering/etc
Diffstat (limited to 'edit-urpm-sources.pl')
-rwxr-xr-xedit-urpm-sources.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index 5bd34a66..a534bcc0 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -80,8 +80,7 @@ sub add_callback {
if_($info->{securitysel}, 0, gtksignal_connect(Gtk2::Button->new(but(N("Choose a mirror..."))),
clicked => sub { my $m = choose_mirror();
if ($m) {
- my ($r) = cat_('/etc/mandrake-release') =~ /release\s(\S+)/;
- $info->{url_entry}->set_text("$m/$r/RPMS/");
+ $info->{url_entry}->set_text(make_url_mirror($m));
$info->{hdlist_entry}->set_text('../base/hdlist.cz');
$info->{hdlist_entry}->set_sensitive(1);
$info->{hdlist_check}->set_active(1);