Added Cinnamon repository

This commit is contained in:
Dimitris Zlatanidis 2017-02-09 14:41:32 +02:00
parent b7d8e0395d
commit 9d103aab15
8 changed files with 51 additions and 3 deletions

View file

@ -205,7 +205,10 @@ Default available Repositories:
- `MATE Desktop Environment <http://slackware.org.uk/msb/>`_
Arch: {x86, x86_64}
Versions: {14.0, 14,1, 14.2}
- `Connochaetos (Slack-n-Free) <https://connochaetos.org/slack-n-free//>`_
- `Cinnamon Desktop Environment <http://slackware.org.uk/csb/>`_
Arch: {x86, x86_64}
Versions: {14,1, 14.2, current}
- `Connochaetos (Slack-n-Free) <https://connochaetos.org/slack-n-free/>`_
Arch: {x86, x86_64}
Versions: {14,1, 14.2}

View file

@ -44,4 +44,5 @@
slackl http://www.slackel.gr/repo/
rested http://taper.alienbase.nl/mirrors/people/alien/restricted_slackbuilds/
msb http://slackware.org.uk/msb/
csb http://slackware.uk/csb/
connos https://connochaetos.org/slack-n-free/

View file

@ -52,4 +52,5 @@ sbo
# slackl
# rested
# msb{1.16}
# csb
# connos

View file

@ -362,6 +362,7 @@ For example:
Slackel.gr = "slackel"
Alien's restricted = "rested"
MATE Desktop Environment = "msb{1.16}"
Cinnamon Desktop Environment = "csb"
Connochaetos slack-n-free = "connos"
Default enable repository is "slack" and "sbo".

View file

@ -99,7 +99,8 @@ class MetaData(object):
"REPOSITORIES": ["slack", "sbo", "rlw", "alien",
"slacky", "slackr", "slonly",
"ktown{latest}", "multi", "slacke{18}",
"salix", "slackl", "rested", "msb{1.16}", "connos"],
"salix", "slackl", "rested", "msb{1.16}",
"csb", "connos"],
"BUILD_PATH": "/tmp/slpkg/build/",
"PACKAGES": "/tmp/slpkg/packages/",
"PATCHES": "/tmp/slpkg/patches/",
@ -125,7 +126,7 @@ class MetaData(object):
default_repositories = ["slack", "sbo", "rlw", "alien", "slacky", "slackr",
"slonly", "ktown", "multi", "slacke", "salix",
"slackl", "rested", "msb", "connos"]
"slackl", "rested", "msb", "csb", "connos"]
# read value from configuration file
repositories = []

View file

@ -132,6 +132,13 @@ class RepoInit(object):
self.def_repo_dict["msb"], slack_ver(),
self.meta.msb_sub_repo[1:-1], arch)
def _init_csb(self):
arch = "x86"
if self.meta.arch == "x86_64":
arch = "x86_64"
self.mirror = "{0}{1}/{2}".format(
self.def_repo_dict["csb"], slack_ver(), arch)
def _init_connos(self):
arch = ""
if self.meta.arch == "x86_64":

View file

@ -55,6 +55,7 @@ class Updates(object):
"slackl": self._init.slackl,
"rested": self._init.rested,
"msb": self._init.msb,
"csb": self._init.csb,
"connos": self._init.msb
}

View file

@ -541,6 +541,39 @@ class Initialization(object):
self.remote(log, ChangeLog_txt, lib, PACKAGES_TXT, CHECKSUMS_MD5,
FILELIST_TXT, repo_name)
def csb(self):
"""Creating Cinnamon local library
"""
ar = "x86"
arch = self.meta.arch
repo = self.def_repos_dict["csb"]
log = self.log_path + "csb/"
lib = self.lib_path + "csb_repo/"
repo_name = log[:-1].split("/")[-1]
lib_file = "PACKAGES.TXT"
# lst_file = ""
md5_file = "CHECKSUMS.md5"
log_file = "ChangeLog.txt"
if not os.path.exists(log):
os.mkdir(log)
if not os.path.exists(lib):
os.mkdir(lib)
if arch == "x86_64":
ar = "x86_64"
PACKAGES_TXT = "{0}{1}/{2}/{3}".format(
repo, slack_ver(), ar, lib_file)
FILELIST_TXT = ""
CHECKSUMS_MD5 = "{0}{1}/{2}/{3}".format(
repo, slack_ver(), ar, md5_file)
ChangeLog_txt = "{0}{1}".format(repo, log_file)
if self.check:
return self.checks_logs(log, ChangeLog_txt)
self.down(lib, PACKAGES_TXT, repo_name)
self.down(lib, CHECKSUMS_MD5, repo_name)
self.down(log, ChangeLog_txt, repo_name)
self.remote(log, ChangeLog_txt, lib, PACKAGES_TXT, CHECKSUMS_MD5,
FILELIST_TXT, repo_name)
def connos(self):
"""Creating connochaetos (slack-n-free) local library
"""