updated for version 2.0.9

This commit is contained in:
Dimitris Zlatanidis 2014-11-26 11:22:49 +02:00
parent 624059f662
commit 9a37623689
9 changed files with 36 additions and 19 deletions

View file

@ -1,3 +1,10 @@
Version 2.0.9
26-11-2014
[Updated] - Fix setup.py to install configuration files after checksum.
- Fix view slpkg config file.
Version 2.0.8 Version 2.0.8
25-11-2014 25-11-2014

10
INSTALL
View file

@ -11,15 +11,17 @@ slpkg works on Slackware distribution.
Install slpkg Install slpkg
------------- -------------
There are mainly 3 ways: There are mainly 4 ways:
1) Download latest slpkg version from https://github.com/dslackw/slpkg/releases 1) Using pip: pip install slpkg --upgrade
2) Download latest slpkg version from https://github.com/dslackw/slpkg/releases
Untar or unzip the archive, cd in slpkg-?.?.? directory. Untar or unzip the archive, cd in slpkg-?.?.? directory.
Run install.sh in this directory `./install.sh` and slpkg auto-installed. Run install.sh in this directory `./install.sh` and slpkg auto-installed.
2) Download slpkg package from slackbuilds.org. 3) Download slpkg package from slackbuilds.org.
3) Download binary package from sourceforge: 4) Download binary package from sourceforge:
https://sourceforge.net/projects/slpkg/ https://sourceforge.net/projects/slpkg/

View file

@ -1,6 +1,6 @@
Metadata-Version: 1.1 Metadata-Version: 1.1
Name: slpkg Name: slpkg
Version: 2.0.8 Version: 2.0.9
Author: dslackw Author: dslackw
Author-email: d zlatanidis at gmail com Author-email: d zlatanidis at gmail com
Maintainer: dslackw Maintainer: dslackw

View file

@ -11,9 +11,9 @@
Latest Release: Latest Release:
- Version: 2.0.8 - Version: 2.0.9
- `Package <https://sourceforge.net/projects/slpkg/files/slpkg/binary/>`_ - `Package <https://sourceforge.net/projects/slpkg/files/slpkg/binary/>`_
- `Source <https://github.com/dslackw/slpkg/archive/v2.0.8.tar.gz>`_ - `Source <https://github.com/dslackw/slpkg/archive/v2.0.9.tar.gz>`_
- `CHANGELOG <https://github.com/dslackw/slpkg/blob/master/CHANGELOG>`_ - `CHANGELOG <https://github.com/dslackw/slpkg/blob/master/CHANGELOG>`_
.. image:: https://raw.githubusercontent.com/dslackw/images/master/slpkg/logo.png .. image:: https://raw.githubusercontent.com/dslackw/images/master/slpkg/logo.png
@ -112,14 +112,21 @@ Untar the archive and run install.sh script:
.. code-block:: bash .. code-block:: bash
$ tar xvf slpkg-2.0.8.tar.gz $ tar xvf slpkg-2.0.9.tar.gz
$ cd slpkg-2.0.8 $ cd slpkg-2.0.9
$ ./install.sh $ ./install.sh
From SourceForge: From SourceForge:
Download binary package from `SourceForge <https://sourceforge.net/projects/slpkg/>`_ Download binary package from `SourceForge <https://sourceforge.net/projects/slpkg/>`_
Using pip:
.. code-block:: bash
$ pip install slpkg --upgrade
Upgrade Upgrade
------- -------
@ -145,7 +152,7 @@ Configuration files
Slackware Current Slackware Current
----------------- -----------------
For Slackware 'current' users must change the variable VERSION in /etc/slpkg.conf file. For Slackware 'current' users must change the variable VERSION in '/etc/slpkg.conf' file.
.. code-block:: bash .. code-block:: bash
@ -157,7 +164,7 @@ Slackware Mirrors
Slpkg uses the central mirror "http://mirrors.slackware.com/slackware/" Slpkg uses the central mirror "http://mirrors.slackware.com/slackware/"
to find the nearest one. If however for some reason this troublesome to find the nearest one. If however for some reason this troublesome
please edit the file in /etc/slpkg/slackware-mirrors please edit the file in '/etc/slpkg/slackware-mirrors'.
Command Line Tool Usage Command Line Tool Usage
----------------------- -----------------------

View file

@ -21,7 +21,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=slpkg PRGNAM=slpkg
VERSION=${VERSION:-2.0.8} VERSION=${VERSION:-2.0.9}
TAG=${TAG:-_dsw} TAG=${TAG:-_dsw}
# Installation script. # Installation script.

View file

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=slpkg PRGNAM=slpkg
VERSION=${VERSION:-2.0.8} VERSION=${VERSION:-2.0.9}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_dsw} TAG=${TAG:-_dsw}

View file

@ -26,7 +26,7 @@ import os
__all__ = "slpkg" __all__ = "slpkg"
__author__ = "dslackw" __author__ = "dslackw"
__version_info__ = (2, 0, 8) __version_info__ = (2, 0, 9)
__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"

View file

@ -46,7 +46,9 @@ class Config(object):
'DEL_BUILD', 'DEL_BUILD',
'SBO_BUILD_LOG', 'SBO_BUILD_LOG',
'DEFAULT_ANSWER', 'DEFAULT_ANSWER',
'REMOVE_DEPS_ANSWER' 'REMOVE_DEPS_ANSWER',
'DEL_DEPS',
'USE_COLORS'
] ]
f = open(self.config_file, "r") f = open(self.config_file, "r")
read_conf = f.read() read_conf = f.read()

View file

@ -75,8 +75,8 @@ class PkgDesc(object):
if self.repo != "sbo": if self.repo != "sbo":
for line in PACKAGES_TXT.splitlines(): for line in PACKAGES_TXT.splitlines():
if line.startswith(self.name + ":"): if line.startswith(self.name + ":"):
print( print(self.COLOR + line[len(self.name) + 1:] +
self.COLOR + line[len(self.name) + 1:] + color['ENDC']) color['ENDC'])
count += 1 count += 1
if count == 11: if count == 11:
break break
@ -85,8 +85,7 @@ class PkgDesc(object):
if (line.startswith("SLACKBUILD SHORT DESCRIPTION: " if (line.startswith("SLACKBUILD SHORT DESCRIPTION: "
+ self.name + " (")): + self.name + " (")):
count += 1 count += 1
print( print(self.COLOR + line[31:] + color['ENDC'])
self.COLOR + line[31:] + color['ENDC'])
if count == 0: if count == 0:
pkg_not_found("", self.name, "No matching", "\n") pkg_not_found("", self.name, "No matching", "\n")
else: else: