repoman: normalize thirdpartymirrors trailing /
authorZac Medico <zmedico@gentoo.org>
Wed, 8 Feb 2012 16:35:50 +0000 (08:35 -0800)
committerZac Medico <zmedico@gentoo.org>
Wed, 8 Feb 2012 16:35:50 +0000 (08:35 -0800)
bin/repoman

index bee6661db1593a37e6a6276b4afc5e55b7cd8ba5..e54967d801f17f15c56ff8dd9fddd756859d187a 100755 (executable)
@@ -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):
        """