smart: added code to force updating configured channels to cdn.openmamba.org url
This commit is contained in:
parent
66e388fea1
commit
644b87bc17
@ -186,6 +186,9 @@ for r in ["devel","devel-games","devel-kde4","devel-kernel","devel-xorg","devel-
|
||||
"devel-misc","devel-java","devel-embedded","devel-autodist","devel-future","devel-past"]:
|
||||
channel=sysconf.get(("channels", r))
|
||||
if channel:
|
||||
if channel['baseurl'].startswith('http://www.openmamba.org/'):
|
||||
channel['baseurl'] = \
|
||||
channel['baseurl'].replace('http://www.openmamba.org/','http://cdn.openmamba.org/')
|
||||
channel['fingerprint']='A402 AA41 82DE 06DD 0C82 943A B771 C004 8746 8781'
|
||||
sysconf.set(("channels",r),channel)
|
||||
for r in ["devel","devel-games"]:
|
||||
|
@ -105,8 +105,11 @@ release=os.popen("openmamba-release -c").read()
|
||||
for r in ["milestone3","milestone3-updates","milestone3-games","milestone3-makedist","milestone3-kernel","milestone3-kde4","milestone3-xorg","milestone3-kernel-next"]:
|
||||
channel=sysconf.get(("channels", r))
|
||||
if channel:
|
||||
if channel['baseurl'].startswith('http://www.openmamba.org/'):
|
||||
channel['baseurl'] = \
|
||||
channel['baseurl'].replace('http://www.openmamba.org/','http://cdn.openmamba.org/')
|
||||
channel['fingerprint']='A402 AA41 82DE 06DD 0C82 943A B771 C004 8746 8781'
|
||||
|
||||
sysconf.set(("channels",r),channel)
|
||||
if release.startswith('milestone3'):
|
||||
for r in ["milestone3","milestone3-updates","milestone3-games"]:
|
||||
channel=sysconf.get(("channels", r))
|
||||
|
Loading…
Reference in New Issue
Block a user