Browse Source

Использование master64 только для calculate,distros,gentoo

tags/3.6.7.5
parent
commit
e4ed00c052
2 changed files with 6 additions and 2 deletions
  1. +4
    -0
      pym/update/update.py
  2. +2
    -2
      pym/update/variables/update.py

+ 4
- 0
pym/update/update.py View File

@@ -377,6 +377,10 @@ class Update(MethodsInterface):
dv.Select(["cl_update_rep_url", "cl_update_rep_path",
"cl_update_rep_rev"],
where="cl_update_rep_name", eq=repname, limit=1))

if revision == "master" and (
repname in ("calculate", "distros", "gentoo", "portage")):
revision = "master64"
if not url or not rpath:
raise UpdateError(_("Configuration variables for repositories "
"are not setup"))


+ 2
- 2
pym/update/variables/update.py View File

@@ -246,7 +246,7 @@ class VariableClUpdateBranch(Variable):
def get(self):
arch = self.Get(self.arch_var)
if arch == "x86_64":
return "master64"
return "master"
else:
return "master"

@@ -1030,7 +1030,7 @@ class VariableClUpdateProfileBranch(Variable):
def get(self):
arch = self.Get("main.os_arch_machine")
if arch == "x86_64":
return "master64"
return "master"
else:
return "master"



Loading…
Cancel
Save