mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Switch config repositories in repositories.conf
This commit is contained in:
parent
76eba5148f
commit
8d54972c21
9 changed files with 45 additions and 40 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2.7.7 - 30/08/2015
|
||||||
|
Added:
|
||||||
|
- NEW configuration file for repositories in /etc/slpkg/repositories.conf
|
||||||
|
Update:
|
||||||
|
- Command line help logo
|
||||||
|
- Flags for packages upgrade
|
||||||
|
|
||||||
2.7.6 - 28/08/2015
|
2.7.6 - 28/08/2015
|
||||||
Fixed:
|
Fixed:
|
||||||
- Failed checksum message #40
|
- Failed checksum message #40
|
||||||
|
|
26
README.rst
26
README.rst
|
@ -20,7 +20,7 @@
|
||||||
:target: https://github.com/dslackw/slpkg/issues
|
:target: https://github.com/dslackw/slpkg/issues
|
||||||
|
|
||||||
|
|
||||||
Slpkg v2.7.6
|
Slpkg v2.7.7
|
||||||
============
|
============
|
||||||
|
|
||||||
|
|
|
|
||||||
|
@ -131,8 +131,8 @@ Default available Repositories:
|
||||||
Versions: {14.0, 14,1}
|
Versions: {14.0, 14,1}
|
||||||
|
|
||||||
|
|
||||||
* Choose default repositories you need to work from file '/etc/slpkg/slpkg.conf' default is
|
* Choose default repositories you need to work from file '/etc/slpkg/repositories.conf' default
|
||||||
'slack' and 'sbo' repositories and read REPOSITORIES file for each of the particularities.
|
is 'slack' and 'sbo' repositories and read REPOSITORIES file for each of the particularities.
|
||||||
If a repository is not in the above list, manage custom repositories with commands 'repo-add'
|
If a repository is not in the above list, manage custom repositories with commands 'repo-add'
|
||||||
and 'repo-remove'.
|
and 'repo-remove'.
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ Usage
|
||||||
|
|
||||||
Need to run '$ slpkg update' for the first time to synchronize the list of packages,
|
Need to run '$ slpkg update' for the first time to synchronize the list of packages,
|
||||||
also every time you add a new repository.
|
also every time you add a new repository.
|
||||||
To add or remove repositories must edit the file '/etc/slpkg/slpkg.conf'.
|
To add or remove repositories must edit the file '/etc/slpkg/repositories.conf'.
|
||||||
|
|
||||||
Add custom repositories with the command '$ slpkg add-repo <repository name> <URL>' and after
|
Add custom repositories with the command '$ slpkg add-repo <repository name> <URL>' and after
|
||||||
run '$ slpkg update' to update package list.
|
run '$ slpkg update' to update package list.
|
||||||
|
@ -235,8 +235,8 @@ Untar the archive and run install.sh script:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ tar xvf slpkg-2.7.6.tar.gz
|
$ tar xvf slpkg-2.7.7.tar.gz
|
||||||
$ cd slpkg-2.7.6
|
$ cd slpkg-2.7.7
|
||||||
$ ./install.sh
|
$ ./install.sh
|
||||||
|
|
||||||
Using pip:
|
Using pip:
|
||||||
|
@ -255,9 +255,9 @@ Using pip:
|
||||||
|
|
||||||
Bbinary packages:
|
Bbinary packages:
|
||||||
|
|
||||||
Slackware: `slpkg-2.7.6-i486-1_dsw.txz <https://github.com/dslackw/slpkg/releases/download/v2.7.6/slpkg-2.7.6-i486-1_dsw.txz>`_
|
Slackware: `slpkg-2.7.7-i486-1_dsw.txz <https://github.com/dslackw/slpkg/releases/download/v2.7.7/slpkg-2.7.7-i486-1_dsw.txz>`_
|
||||||
|
|
||||||
Slackware64: `slpkg-2.7.6-x86_64-1_dsw.txz <https://github.com/dslackw/slpkg/releases/download/v2.7.6/slpkg-2.7.6-x86_64-1_dsw.txz>`_
|
Slackware64: `slpkg-2.7.7-x86_64-1_dsw.txz <https://github.com/dslackw/slpkg/releases/download/v2.7.7/slpkg-2.7.7-x86_64-1_dsw.txz>`_
|
||||||
|
|
||||||
|
|
||||||
Optional dependencies
|
Optional dependencies
|
||||||
|
@ -322,6 +322,9 @@ Configuration Files
|
||||||
|
|
||||||
/etc/slpkg/slpkg.conf
|
/etc/slpkg/slpkg.conf
|
||||||
General configuration of slpkg
|
General configuration of slpkg
|
||||||
|
|
||||||
|
/etc/slpkg/repositories.conf
|
||||||
|
Configuration file for repositories
|
||||||
|
|
||||||
/etc/slpkg/blacklist
|
/etc/slpkg/blacklist
|
||||||
List of packages to skip
|
List of packages to skip
|
||||||
|
@ -547,8 +550,11 @@ View information about the repositories:
|
||||||
slonly https://slackonly.com/pub/packages/ yes disabled
|
slonly https://slackonly.com/pub/packages/ yes disabled
|
||||||
studio http://studioware.org/files/packages/ yes disabled
|
studio http://studioware.org/files/packages/ yes disabled
|
||||||
|
|
||||||
15/15 enabled default repositories and 1 custom.
|
Repositories summary
|
||||||
For enable or disable default repositories edit '/etc/slpkg/slpkg.conf' file.
|
===============================================================================
|
||||||
|
3/15 enabled default repositories and 1 custom.
|
||||||
|
For enable or disable default repositories edit '/etc/slpkg/repositories.conf'
|
||||||
|
file.
|
||||||
|
|
||||||
$ slpkg repo-info alien
|
$ slpkg repo-info alien
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
# Slacke (Enlightenment E17 and E18) repository. Default slacke{18}.
|
# Slacke (Enlightenment E17 and E18) repository. Default slacke{18}.
|
||||||
# MSB (mate) repository. Default msb{1.10}
|
# MSB (mate) repository. Default msb{1.10}
|
||||||
# Slackware ARM users will must use only two repositories at the moment slack and sbo.
|
# Slackware ARM users will must use only two repositories at the moment slack and sbo.
|
||||||
|
# Default repositories is slack (Slackware) and sbo (SlackBuilds.org)
|
||||||
# Read the REPOSITORIES file.
|
# Read the REPOSITORIES file.
|
||||||
#
|
#
|
||||||
# Uncomment (remove the '#' character) to choose repositories:
|
# Uncomment (remove the '#' character) to choose repositories:
|
||||||
|
|
|
@ -25,18 +25,6 @@
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# Slackware release "stable" or "current".
|
# Slackware release "stable" or "current".
|
||||||
RELEASE=stable
|
RELEASE=stable
|
||||||
#
|
|
||||||
# Choose repositories want to work. Read first REPOSITORIES file.
|
|
||||||
# Available repositories : slack,sbo,alien,rlw,slacky,studio,slackr,slonly,
|
|
||||||
# ktown{latest},multi,slacke{18},salix,slackl,rested
|
|
||||||
# msb{1.10}
|
|
||||||
#
|
|
||||||
# slackr (slackers.it) repository must used from Slackware64 current.
|
|
||||||
# Ktown (Alien"s ktown) repository. Default ktown{latest}.
|
|
||||||
# Slacke (Enlightenment E17 and E18) repository. Default slacke{18}.
|
|
||||||
# MSB (mate) repository. Default msb{1.10}
|
|
||||||
# Slackware ARM users will must use only two repositories at the moment slack and sbo.
|
|
||||||
REPOSITORIES=slack,sbo
|
|
||||||
|
|
||||||
# Build directory for repository "sbo" slackbuilds.org. In this
|
# Build directory for repository "sbo" slackbuilds.org. In this
|
||||||
# directory downloaded sources and scripts for building.
|
# directory downloaded sources and scripts for building.
|
||||||
|
|
|
@ -311,7 +311,7 @@ For example:
|
||||||
MATE Desktop Environment = "msb{1.10}"
|
MATE Desktop Environment = "msb{1.10}"
|
||||||
|
|
||||||
Default enable repository is "slack" and "sbo".
|
Default enable repository is "slack" and "sbo".
|
||||||
Add or remove default repository in configuration file "/etc/slpkg/slpkg.conf".
|
Add or remove default repository in configuration file "/etc/slpkg/repositories.conf".
|
||||||
Read REPOSITORIES file for particularities.
|
Read REPOSITORIES file for particularities.
|
||||||
|
|
||||||
.SH COLORS
|
.SH COLORS
|
||||||
|
@ -335,6 +335,9 @@ For example:
|
||||||
/etc/slpkg/slpkg.conf
|
/etc/slpkg/slpkg.conf
|
||||||
General configuration of slpkg
|
General configuration of slpkg
|
||||||
|
|
||||||
|
/etc/slpkg/repositories.conf
|
||||||
|
Configuration file for repositories
|
||||||
|
|
||||||
/etc/slpkg/blacklist
|
/etc/slpkg/blacklist
|
||||||
List of packages to skip
|
List of packages to skip
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ config() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
CONFIGS="slpkg.conf blacklist slackware-mirrors custom-repositories \
|
CONFIGS="slpkg.conf repositories.conf blacklist slackware-mirrors custom-repositories \
|
||||||
slackware-changelogs-mirror"
|
slackware-changelogs-mirror"
|
||||||
for file in $CONFIGS; do
|
for file in $CONFIGS; do
|
||||||
config etc/slpkg/${file}.new
|
config etc/slpkg/${file}.new
|
||||||
|
|
|
@ -86,7 +86,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
|
||||||
|
|
||||||
mkdir -p $PKG/etc/slpkg
|
mkdir -p $PKG/etc/slpkg
|
||||||
# install configurations files
|
# install configurations files
|
||||||
CONFIGS="slpkg.conf blacklist slackware-mirrors custom-repositories \
|
CONFIGS="slpkg.conf repositories.conf blacklist slackware-mirrors custom-repositories \
|
||||||
slackware-changelogs-mirror"
|
slackware-changelogs-mirror"
|
||||||
for file in $CONFIGS; do
|
for file in $CONFIGS; do
|
||||||
install -D -m0644 conf/$file $PKG/etc/slpkg/${file}.new
|
install -D -m0644 conf/$file $PKG/etc/slpkg/${file}.new
|
||||||
|
|
|
@ -87,7 +87,7 @@ class MetaData(object):
|
||||||
|
|
||||||
__all__ = "slpkg"
|
__all__ = "slpkg"
|
||||||
__author__ = "dslackw"
|
__author__ = "dslackw"
|
||||||
__version_info__ = (2, 7, 6)
|
__version_info__ = (2, 7, 7)
|
||||||
__version__ = "{0}.{1}.{2}".format(*__version_info__)
|
__version__ = "{0}.{1}.{2}".format(*__version_info__)
|
||||||
__license__ = "GNU General Public License v3 (GPLv3)"
|
__license__ = "GNU General Public License v3 (GPLv3)"
|
||||||
__email__ = "d.zlatanidis@gmail.com"
|
__email__ = "d.zlatanidis@gmail.com"
|
||||||
|
@ -137,21 +137,21 @@ class MetaData(object):
|
||||||
"salix", "slackl", "rested", "msb"]
|
"salix", "slackl", "rested", "msb"]
|
||||||
|
|
||||||
# read value from configuration file
|
# read value from configuration file
|
||||||
if os.path.isfile("%s%s" % (conf_path, "slpkg.conf")):
|
repositories = []
|
||||||
f = open("%s%s" % (conf_path, "slpkg.conf"), "r")
|
for files in ["slpkg.conf", "repositories.conf"]:
|
||||||
conf = f.read()
|
if os.path.isfile("%s%s" % (conf_path, files)):
|
||||||
f.close()
|
f = open("%s%s" % (conf_path, files), "r")
|
||||||
for line in conf.splitlines():
|
conf = f.read()
|
||||||
line = line.lstrip()
|
f.close()
|
||||||
if line and not line.startswith("#"):
|
for line in conf.splitlines():
|
||||||
_conf_slpkg[line.split("=")[0]] = line.split("=")[1]
|
line = line.lstrip()
|
||||||
|
if line and not line.startswith("#"):
|
||||||
|
if files == "slpkg.conf":
|
||||||
|
_conf_slpkg[line.split("=")[0]] = line.split("=")[1]
|
||||||
|
elif files == "repositories.conf":
|
||||||
|
repositories.append(line)
|
||||||
# Set values from configuration file
|
# Set values from configuration file
|
||||||
slack_rel = _conf_slpkg["RELEASE"]
|
slack_rel = _conf_slpkg["RELEASE"]
|
||||||
if isinstance(_conf_slpkg["REPOSITORIES"], basestring):
|
|
||||||
repositories = _conf_slpkg["REPOSITORIES"].split(",")
|
|
||||||
else:
|
|
||||||
repositories = _conf_slpkg["REPOSITORIES"]
|
|
||||||
build_path = _conf_slpkg["BUILD_PATH"]
|
build_path = _conf_slpkg["BUILD_PATH"]
|
||||||
slpkg_tmp_packages = _conf_slpkg["PACKAGES"]
|
slpkg_tmp_packages = _conf_slpkg["PACKAGES"]
|
||||||
slpkg_tmp_patches = _conf_slpkg["PATCHES"]
|
slpkg_tmp_patches = _conf_slpkg["PATCHES"]
|
||||||
|
|
|
@ -89,6 +89,6 @@ class RepoList(object):
|
||||||
print("{0}{1}/{2} enabled default repositories and {3} custom.".format(
|
print("{0}{1}/{2} enabled default repositories and {3} custom.".format(
|
||||||
self.meta.color["GREY"], def_cnt, len(self.all_repos), cus_cnt))
|
self.meta.color["GREY"], def_cnt, len(self.all_repos), cus_cnt))
|
||||||
print("For enable or disable default repositories edit "
|
print("For enable or disable default repositories edit "
|
||||||
"'/etc/slpkg/slpkg.conf' file.\n{0}".format(
|
"'/etc/slpkg/repositories.conf'\nfile.\n{0}".format(
|
||||||
self.meta.color["ENDC"]))
|
self.meta.color["ENDC"]))
|
||||||
raise SystemExit()
|
raise SystemExit()
|
||||||
|
|
Loading…
Reference in a new issue