Fix support Slackware arm #36

This commit is contained in:
Dimitris Zlatanidis 2015-08-10 06:36:07 +03:00
parent 8a9f95e539
commit 0245ed7651
2 changed files with 7 additions and 0 deletions

View file

@ -99,6 +99,8 @@ class Repo(object):
Official slackware repository
"""
default = "http://mirrors.slackware.com/slackware/"
if self.meta.arch.startswith("arm"):
default = "http://ftp.arm.slackware.com/slackwarearm/"
if os.path.isfile("/etc/slpkg/slackware-mirrors"):
mirrors = Utils().read_file(
self.meta.conf_path + "slackware-mirrors")

View file

@ -41,6 +41,11 @@ def mirrors(name, location):
http = repo + "slackware64-{0}/{1}{2}".format(ver, location, name)
else:
http = repo + "slackware64-{0}/{1}{2}".format(rel, location, name)
elif _meta_.arch.startswith("arm"):
if rel == "stable":
http = repo + "slackwarearm-{0}/{1}{2}".format(ver, location, name)
else:
http = repo + "slackwarearm-{0}/{1}{2}".format(rel, location, name)
else:
if rel == "stable":
http = repo + "slackware-{0}/{1}{2}".format(ver, location, name)