projects
/
platform
/
upstream
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f89b5f
)
- allow urls with missing trailing /
author
Michael Schroeder
<mls@suse.de>
Fri, 23 Jul 2010 09:57:43 +0000
(11:57 +0200)
committer
Michael Schroeder
<mls@suse.de>
Fri, 23 Jul 2010 09:57:43 +0000
(11:57 +0200)
createrepomddeps
patch
|
blob
|
history
diff --git
a/createrepomddeps
b/createrepomddeps
index
002275b
..
6793a28
100755
(executable)
--- 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 =~ /\/$/;