updated for version 1.9.7

This commit is contained in:
Dimitris Zlatanidis 2014-10-06 16:15:13 +03:00
parent a3525a2f15
commit a5bb698e36
8 changed files with 19 additions and 15 deletions

View file

@ -1,3 +1,8 @@
Version 1.9.7
06-10-2014
[Updated] - Bugfix UnboundLocalError: local variable 'arch' referenced before assignment
Version 1.9.6 Version 1.9.6
04-10-2014 04-10-2014

View file

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

View file

@ -7,9 +7,9 @@
Latest Release: Latest Release:
- Version: 1.9.6 - Version: 1.9.7
- `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/v1.9.6.tar.gz>`_ - `Source <https://github.com/dslackw/slpkg/archive/v1.9.7.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
@ -96,8 +96,8 @@ Untar the archive and run install.sh script:
.. code-block:: bash .. code-block:: bash
$ tar xvf slpkg-1.9.6.tar.gz $ tar xvf slpkg-1.9.7.tar.gz
$ cd slpkg-1.9.6 $ cd slpkg-1.9.7
$ ./install.sh $ ./install.sh
Using `pip <https://pip.pypa.io/en/latest/>`_ : Using `pip <https://pip.pypa.io/en/latest/>`_ :

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:-1.9.6} VERSION=${VERSION:-1.9.7}
TAG=${TAG:-_dsw} TAG=${TAG:-_dsw}
cd .. cd ..

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:-1.9.6} VERSION=${VERSION:-1.9.7}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_dsw} TAG=${TAG:-_dsw}
@ -89,7 +89,7 @@ gzip -9 man/$PRGNAM.8
install -D -m0644 man/$PRGNAM.8.gz $PKG/usr/man/man8/$PRGNAM.8.gz install -D -m0644 man/$PRGNAM.8.gz $PKG/usr/man/man8/$PRGNAM.8.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.rst CHANGELOG LICENSE CONTRIBUTING ISSUES conf/* $PKG/usr/doc/$PRGNAM-$VERSION cp -a README.rst CHANGELOG LICENSE CONTRIBUTING ISSUES $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install

View file

@ -1,7 +1,7 @@
PRGNAM="slpkg" PRGNAM="slpkg"
VERSION="1.9.6" VERSION="1.9.7"
HOMEPAGE="https://github.com/dslackw/slpkg" HOMEPAGE="https://github.com/dslackw/slpkg"
DOWNLOAD="https://github.com/dslackw/slpkg/archive/v1.9.6.tar.gz" DOWNLOAD="https://github.com/dslackw/slpkg/archive/v1.9.7.tar.gz"
MD5SUM="" MD5SUM=""
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""

View file

@ -26,7 +26,7 @@ import subprocess
__all__ = "slpkg" __all__ = "slpkg"
__author__ = "dslackw" __author__ = "dslackw"
__version_info__ = (1, 9, 6) __version_info__ = (1, 9, 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"

View file

@ -30,13 +30,12 @@ def split_package(package):
Split package in name, version Split package in name, version
arch and build tag. arch and build tag.
''' '''
arch = slack = str()
for archs in slack_archs: for archs in slack_archs:
if archs in package: if archs in package:
arch = archs arch = archs
if "_slack" in package: if "_slack" in package:
slack = "_slack" + slack_ver() slack = "_slack" + slack_ver()
else:
slack = ""
pkg = package[:-(len(slack) + 4)] pkg = package[:-(len(slack) + 4)]
build = pkg.split("-")[-1] build = pkg.split("-")[-1]
pkg_ver = pkg[:-(len(arch) + len(build))] pkg_ver = pkg[:-(len(arch) + len(build))]