diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-06 12:05:01 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-06 12:05:01 +0000 |
commit | 074cd7e12c06ff7b1ecfdc05ba523a95a7743847 (patch) | |
tree | abf3e038d2f63a2b36614a258c07b323278c316f /edit-urpm-sources.pl | |
parent | bf30b85f9e644f5c5019e843096b921325ed2f20 (diff) | |
download | rpmdrake-074cd7e12c06ff7b1ecfdc05ba523a95a7743847.tar rpmdrake-074cd7e12c06ff7b1ecfdc05ba523a95a7743847.tar.gz rpmdrake-074cd7e12c06ff7b1ecfdc05ba523a95a7743847.tar.bz2 rpmdrake-074cd7e12c06ff7b1ecfdc05ba523a95a7743847.tar.xz rpmdrake-074cd7e12c06ff7b1ecfdc05ba523a95a7743847.zip |
handle case when user enters the location of the ftp source with
a leading ftp://
Diffstat (limited to 'edit-urpm-sources.pl')
-rwxr-xr-x | edit-urpm-sources.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl index c9d6ab55..a1540dde 100755 --- a/edit-urpm-sources.pl +++ b/edit-urpm-sources.pl @@ -136,6 +136,7 @@ really want to replace it?"), { yesno => 1 } ) or return 0; ? ($info->{login_entry}->get_text.':'.$info->{pass_entry}->get_text.'@') : '', $url; + $make_url{ftp} =~ s|^ftp://ftp://|ftp://|; if (member($name, map { $_->{name} } @{$urpm->{media}})) { standalone::explanations("Removing medium $name"); $urpm->select_media($name); |