From dba938587a6cbe0bb83b72052553a65f293f15c2 Mon Sep 17 00:00:00 2001 From: Ondrej Nosek Date: Aug 29 2019 15:21:59 +0000 Subject: Path to lookaside repo fix When lookaside repo URL in config has slash character at the end, the final repo contains unwanted double slashes. Signed-off-by: Ondrej Nosek --- diff --git a/pyrpkg/lookaside.py b/pyrpkg/lookaside.py index ede81ea..084afdd 100644 --- a/pyrpkg/lookaside.py +++ b/pyrpkg/lookaside.py @@ -132,7 +132,7 @@ class CGILookasideCache(object): 'hash': hash, 'hashtype': hashtype} path_dict.update(kwargs) path = self.download_path % path_dict - return '%s/%s' % (self.download_url, path) + return os.path.join(self.download_url, path) def download(self, name, filename, hash, outfile, hashtype=None, **kwargs): """Download a source file