aboutsummaryrefslogtreecommitdiffstats
path: root/edit-urpm-sources.pl
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-12-05 14:51:06 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-12-05 14:51:06 +0000
commit9e515b5b9169f082fb2174e41c32f151fe27b1d0 (patch)
tree14a234dd6dcccc920c29846032f4e1fe00c1ebf5 /edit-urpm-sources.pl
parent5744a3b04b3ecbc8bca7b8e489b1a0b190015211 (diff)
downloadrpmdrake-9e515b5b9169f082fb2174e41c32f151fe27b1d0.tar
rpmdrake-9e515b5b9169f082fb2174e41c32f151fe27b1d0.tar.gz
rpmdrake-9e515b5b9169f082fb2174e41c32f151fe27b1d0.tar.bz2
rpmdrake-9e515b5b9169f082fb2174e41c32f151fe27b1d0.tar.xz
rpmdrake-9e515b5b9169f082fb2174e41c32f151fe27b1d0.zip
Patch by Javier Mart�nez to add support for adding rsync sources in the software media manager. (see bug #19572)
Diffstat (limited to 'edit-urpm-sources.pl')
-rwxr-xr-xedit-urpm-sources.pl10
1 files changed, 8 insertions, 2 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index b62ca749..4d51aa94 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -129,10 +129,11 @@ sub add_callback {
my %radios_infos = (
local => { name => N("Local files"), url => N("Path:"), dirsel => 1 },
ftp => { name => N("FTP server"), url => N("URL:"), loginpass => 1 },
+ rsync => { name => N("RSYNC server"), url => N("URL:") },
http => { name => N("HTTP server"), url => N("URL:") },
removable => { name => N("Removable device"), url => N("Path or mount point:"), dirsel => 1 },
);
- my @radios_names_ordered = qw(local ftp http removable);
+ my @radios_names_ordered = qw(local ftp rsync http removable);
my @modes_buttons = gtkradio($radios_infos{local}{name}, map { $radios_infos{$_}{name} } @radios_names_ordered);
my $notebook = Gtk2::Notebook->new;
$notebook->set_show_tabs(0); $notebook->set_show_border(0);
@@ -259,7 +260,12 @@ really want to replace it?"), yesno => 1) or return 0;
distrib => $info->{distrib_check} ? $info->{distrib_check}->get_active : 0,
update => $info->{update_check}->get_active ? 1 : undef,
);
- %make_url = (local => "file:/$i{url}", http => $i{url}, removable => "removable:/$i{url}");
+ %make_url = (
+ local => "file:/$i{url}",
+ http => $i{url},
+ rsync => $i{url},
+ removable => "removable:/$i{url}",
+ );
$i{url} =~ s|^ftp://||;
$make_url{ftp} = sprintf "ftp://%s%s",
$info->{login_check}->get_active