|
@@ -50,10 +50,14 @@ class Config(BaseConfig):
|
|
if not self._data.get("cachedir"):
|
|
if not self._data.get("cachedir"):
|
|
self._data["cachedir"] = "/var/cache/pacman-repo.d"
|
|
self._data["cachedir"] = "/var/cache/pacman-repo.d"
|
|
|
|
|
|
|
|
+ if "~" in self["cachedir"]:
|
|
|
|
+ self._data["cachedir"] = os.path.expanduser(self["cachedir"])
|
|
|
|
+
|
|
|
|
+ self._data["cachedir"] = os.path.abspath(self["cachedir"])
|
|
if not os.path.exists(self["cachedir"]):
|
|
if not os.path.exists(self["cachedir"]):
|
|
os.makedirs(self["cachedir"])
|
|
os.makedirs(self["cachedir"])
|
|
|
|
|
|
- print("Creating cachedir {}".format(os.path.realpath(self["cachedir"])))
|
|
+ print("Creating cachedir {}".format(self["cachedir"]))
|
|
self.repos = []
|
|
self.repos = []
|
|
self.servers = []
|
|
self.servers = []
|
|
with pushd(path):
|
|
with pushd(path):
|