Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
@property
def basepath(self):
- return "/".join((
+ return os.path.join(
self.distro.identifier,
self.identifier,
- ))
+ )
@property
def path(self):
@property
def url(self):
- return os.path.join(
+ return "/".join((
self.settings.get("baseurl", "https://pakfire.ipfire.org"),
"repositories",
self.basepath,
- )
+ ))
@property
def mirrorlist(self):
- return os.path.join(
+ return "/".join((
self.settings.get("baseurl", "https://pakfire.ipfire.org"),
"distro", self.distro.identifier,
"repo", self.identifier,
"mirrorlist?arch=%{arch}"
- )
+ ))
def get_conf(self, local=False):
lines = [
# Always use the buildservice itself as last resort
mirrors.append({
- "url" : repo.url,
+ "url" : "/".join((repo.url, arch)),
})
ret["mirrors"] = mirrors