mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Fix support Slackware arm #36
This commit is contained in:
parent
8a9f95e539
commit
0245ed7651
2 changed files with 7 additions and 0 deletions
|
@ -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")
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue