diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2012-10-07 23:15:51 -0700 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2012-10-07 23:15:51 -0700 |
commit | 729923d4a2d5a22f6509de438953ef6035d38e20 (patch) | |
tree | 531bb1dbba640b7c7c4d233d9f8286ff51a6a67d /layman/overlays/git.py | |
parent | 25da05250a60d1bae9a03eadb8db4eb744cc4ae0 (diff) | |
download | layman-729923d4a2d5a22f6509de438953ef6035d38e20.tar.gz layman-729923d4a2d5a22f6509de438953ef6035d38e20.tar.bz2 layman-729923d4a2d5a22f6509de438953ef6035d38e20.zip |
Fix bug 372583. Don't add redundant trailing slashes on src uri's where trailing slashes are required.
Diffstat (limited to 'layman/overlays/git.py')
-rw-r--r-- | layman/overlays/git.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/layman/overlays/git.py b/layman/overlays/git.py index e15f26d..81e650c 100644 --- a/layman/overlays/git.py +++ b/layman/overlays/git.py @@ -53,7 +53,10 @@ class GitOverlay(OverlaySource): def fix_git_source(source): # http:// should get trailing slash, other protocols shouldn't if source.split(':')[0] == 'http': - return source + '/' + if source.endswith('/'): + return source + else: + return source + '/' return source cfg_opts = self.config["git_addopts"] |