Add devel-kernel-past to preconfigured channels list
This commit is contained in:
parent
4a71dbf068
commit
44015df450
@ -177,13 +177,26 @@ if not sysconf.get(("channels", "devel-contrib")):
|
||||
"manual": "yes",
|
||||
"disabled": "yes"})
|
||||
|
||||
#
|
||||
# openmamba devel-kernel-past channel configuration for Smart Package Manager
|
||||
#
|
||||
if not sysconf.get(("channels", "devel-kernel-past")):
|
||||
sysconf.set(("channels", "devel-kernel-past"),
|
||||
{"alias": "devel-kernel-past",
|
||||
"type": "apt-rpm",
|
||||
"name": "previous kernel release [unstable]",
|
||||
"baseurl": "http://cdn.openmamba.org/pub/openmamba/devel-kernel-past",
|
||||
"components": "%ARCH%",
|
||||
"disabled": "yes"})
|
||||
|
||||
import os
|
||||
import sys
|
||||
release=os.popen("openmamba-release -c").read()
|
||||
|
||||
#if release.startswith('devel'):
|
||||
for r in ["devel","devel-games","devel-kde4","devel-kernel","devel-xorg","devel-makedist","devel-gnome",\
|
||||
"devel-misc","devel-java","devel-embedded","devel-autodist","devel-future","devel-past"]:
|
||||
"devel-misc","devel-java","devel-embedded","devel-autodist","devel-future","devel-past",
|
||||
"devel-contrib","devel-kernel-past"]:
|
||||
channel=sysconf.get(("channels", r))
|
||||
if channel:
|
||||
if channel['baseurl'].startswith('http://www.openmamba.org/'):
|
||||
|
Loading…
Reference in New Issue
Block a user