summaryrefslogtreecommitdiff
path: root/createrepomddeps
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2010-07-23 11:57:43 +0200
committerMichael Schroeder <mls@suse.de>2010-07-23 11:57:43 +0200
commit8c632e2398659a7f99397ee1c29874ae7a13c776 (patch)
treee77ef2637419a1aca635040f58a9ef43bd7fd80b /createrepomddeps
parent5f89b5f48f3a483fca816628ea7f038e83da2f2e (diff)
downloadobs-build-8c632e2398659a7f99397ee1c29874ae7a13c776.tar.gz
obs-build-8c632e2398659a7f99397ee1c29874ae7a13c776.tar.bz2
obs-build-8c632e2398659a7f99397ee1c29874ae7a13c776.zip
- allow urls with missing trailing /
Diffstat (limited to 'createrepomddeps')
-rwxr-xr-xcreaterepomddeps3
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 =~ /\/$/;