diff options
author | Michael Schroeder <mls@suse.de> | 2010-07-23 11:57:43 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2010-07-23 11:57:43 +0200 |
commit | 8c632e2398659a7f99397ee1c29874ae7a13c776 (patch) | |
tree | e77ef2637419a1aca635040f58a9ef43bd7fd80b /createrepomddeps | |
parent | 5f89b5f48f3a483fca816628ea7f038e83da2f2e (diff) | |
download | obs-build-8c632e2398659a7f99397ee1c29874ae7a13c776.tar.gz obs-build-8c632e2398659a7f99397ee1c29874ae7a13c776.tar.bz2 obs-build-8c632e2398659a7f99397ee1c29874ae7a13c776.zip |
- allow urls with missing trailing /
Diffstat (limited to 'createrepomddeps')
-rwxr-xr-x | createrepomddeps | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/createrepomddeps b/createrepomddeps index 002275b..6793a28 100755 --- a/createrepomddeps +++ b/createrepomddeps @@ -398,8 +398,9 @@ for my $url (@ARGV) { } elsif ($url =~ /^http:\/\/([^\/]*)\/?/) { my $repoid = md5_hex($url); $dir = "$cachedir/$repoid/"; - getmetadata($url, $dir); $baseurl = $url; + $baseurl .= '/' unless $baseurl =~ /\/$/; + getmetadata($baseurl, $dir); } else { $dir = $url; $dir .= '/' unless $dir =~ /\/$/; |