aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-08-06 12:05:01 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-08-06 12:05:01 +0000
commit074cd7e12c06ff7b1ecfdc05ba523a95a7743847 (patch)
treeabf3e038d2f63a2b36614a258c07b323278c316f
parentbf30b85f9e644f5c5019e843096b921325ed2f20 (diff)
downloadrpmdrake-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://
-rwxr-xr-xedit-urpm-sources.pl1
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);