--- Desktop/apt_proxy.py 2006-01-26 12:09:10.000000000 +0000 +++ apt_proxy.py 2006-06-03 12:50:44.000000000 +0100 @@ -1491,7 +1491,8 @@ NOTE: os.path.normpath could probably be used here. """ - path = re.sub(r"//+", "/", old_path) + path = re.sub(r"^.+p://.+:\d+/", "/", old_path) + path = re.sub(r"//+", "/", path) path = re.sub(r"/\./+", "/", path) new_path = re.sub(r"/[^/]+/\.\./", "/", path) while (new_path != path):