diff --git a/src/cygapt/cygapt.py b/src/cygapt/cygapt.py index c672b0c..74acbf4 100644 --- a/src/cygapt/cygapt.py +++ b/src/cygapt/cygapt.py @@ -111,7 +111,7 @@ def __init__(self, self.__rc.mirror = main_mirror; self.__downloadDir = os.path.join( self.__rc.cache, - urllib.quote(self.__rc.mirror, '').lower() + urllib.quote(self.__rc.mirror.rstrip('/')+'/', '').lower() ); if (main_distname): @@ -1244,7 +1244,7 @@ def getRessource(self, filename): self.__rc.cache = self.__pm.mapPath(self.__rc.cache); self.__downloadDir = os.path.join( self.__rc.cache, - urllib.quote(self.__rc.mirror, '').lower() + urllib.quote(self.__rc.mirror.rstrip('/')+'/', '').lower() ); self.__installedDbFile = os.path.join(self.__setupDir, "installed.db"); diff --git a/src/cygapt/setup.py b/src/cygapt/setup.py index 33152a7..23bfabe 100644 --- a/src/cygapt/setup.py +++ b/src/cygapt/setup.py @@ -251,7 +251,7 @@ def setup(self, force=False): setupIniPath = os.path.join( self.__pm.mapPath(self.__rc.cache), - urllib.quote(self.__rc.mirror, '').lower(), + urllib.quote(self.__rc.mirror.rstrip('/')+'/', '').lower(), self.__arch, 'setup.ini', ); @@ -399,7 +399,7 @@ def update(self, cyg_apt_rc, verify, main_mirror=None): downloads = os.path.join( self.__pm.mapPath(self.__rc.cache), - urllib.quote(mirror, '').lower(), + urllib.quote(mirror.rstrip('/')+'/', '').lower(), platform_dir, );