summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-02-08 08:35:50 -0800
committerZac Medico <zmedico@gentoo.org>2012-02-08 08:35:50 -0800
commit4d4b444be9e89ac25f6919e95b3d7c775e1af212 (patch)
tree0a1538f10d1f53de7818f1c3e33eee4c298d4bc3
parent7e38a0253bdc1a25b54f0783c0bb2a72239fdb05 (diff)
downloadportage-4d4b444be9e89ac25f6919e95b3d7c775e1af212.tar.gz
portage-4d4b444be9e89ac25f6919e95b3d7c775e1af212.tar.bz2
portage-4d4b444be9e89ac25f6919e95b3d7c775e1af212.zip
repoman: normalize thirdpartymirrors trailing /
-rwxr-xr-xbin/repoman5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index bee6661db..e54967d80 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -1171,7 +1171,10 @@ check_ebuild_notadded = not \
# Build a regex from thirdpartymirrors for the SRC_URI.mirror check.
thirdpartymirrors = []
for v in repoman_settings.thirdpartymirrors().values():
- thirdpartymirrors.extend(v)
+ for v in v:
+ if not v.endswith("/"):
+ v += "/"
+ thirdpartymirrors.append(v)
class _MetadataTreeBuilder(xml.etree.ElementTree.TreeBuilder):
"""