updated for version 1.8.2

This commit is contained in:
Dimitris Zlatanidis 2014-09-08 03:36:40 +03:00
parent ca274d2dbd
commit 18c6d8d7f1
12 changed files with 35 additions and 46 deletions

View file

@ -1,3 +1,10 @@
Version 1.8.2
08-09-2014
[Updated] - Fix resolving dependencies '-c sbo upgrade' option.
- Update sbo summarys
[Feature] - Add build log file
Version 1.8.1
04-09-2014

View file

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

View file

@ -9,9 +9,9 @@
Latest Release:
- Version: 1.8.1
- Version: 1.8.2
- `Package <https://sourceforge.net/projects/slpkg/>`_
- `Source <https://github.com/dslackw/slpkg/archive/v1.8.1.tar.gz>`_
- `Source <https://github.com/dslackw/slpkg/archive/v1.8.2.tar.gz>`_
- `CHANGELOG <https://github.com/dslackw/slpkg/blob/master/CHANGELOG>`_
`Slpkg <https://github.com/dslackw/slpkg>`_ is a terminal multitool in order to easy use `Slackware <http://www.slackware.com/>`_
@ -76,8 +76,6 @@ Features
It's a quick and easy way to manage your packages in `Slackware <http://www.slackware.com/>`_
to a command.
`[CHANGELOG] <https://github.com/dslackw/slpkg/blob/master/CHANGELOG>`_
Video Tutorial
==============
@ -91,8 +89,8 @@ Untar the archive and run install.sh script:
.. code-block:: bash
$ tar xvf slpkg-1.8.1.tar.gz
$ cd slpkg-1.8.1
$ tar xvf slpkg-1.8.2.tar.gz
$ cd slpkg-1.8.2
$ ./install.sh
Using `pip <https://pip.pypa.io/en/latest/>`_ :
@ -155,7 +153,8 @@ build and install with all dependencies :
$ slpkg -s sbo brasero
Building dependency tree...... Done
The following packages will be automatically installed or upgraded with new version:
The following packages will be automatically installed or upgraded
with new version:
+==============================================================================
| Package Version Arch Repository
@ -172,29 +171,10 @@ build and install with all dependencies :
Installing summary
===============================================================================
Total 6 packages.
6 packages will be installed, 0 allready installed.
6 packages will be installed, 0 allready installed and 0 package
will be upgraded.
Do you want to continue [Y/n]? y
.
.
.
+==============================================================================
| Installing new package /tmp/brasero-3.11.3-x86_64-1_SBo.tgz
+==============================================================================
Verifying package brasero-3.11.3-x86_64-1_SBo.tgz.
Installing package brasero-3.11.3-x86_64-1_SBo.tgz:
PACKAGE DESCRIPTION:
# brasero (CD/DVD burning application)
#
# Brasero is a application to burn CD/DVD for the Gnome Desktop. It is
# designed to be as simple as possible and has some unique features to
# enable users to create their discs easily and quickly.
#
# Homepage: http://projects.gnome.org/brasero
#
Executing install script for brasero-3.11.3-x86_64-1_SBo.tgz.
Package brasero-3.11.3-x86_64-1_SBo.tgz installed.
Find packages from `Slackware official mirrors <http://mirrors.slackware.com/>`_
download and install:
@ -273,7 +253,7 @@ Check if your packages is up to date from slackbuilds.org:
Installing summary
===============================================================================
Total 8 packages will be upgraded.
Total 8 packages will be upgraded and 0 package will be installed.
Would you like to upgrade [Y/n]?

View file

@ -21,7 +21,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=slpkg
VERSION=${VERSION:-1.8.1}
VERSION=${VERSION:-1.8.2}
TAG=${TAG:-_dsw}
cd ..

View file

@ -170,7 +170,8 @@ $ \fBslpkg -s sbo brasero\fP
Installing summary
===============================================================================
Total 6 packages.
0 packages will be installed, 6 allready installed.
2 packages will be installed, 3 allready installed and 1 packages
will be upgraded.
Do you want to continue [Y/n]? y
.
@ -215,7 +216,7 @@ $ \fBslpkg -c sbo upgrade\fP
Installing summary
===============================================================================
Total 8 packages will be upgraded.
Total 8 packages will be upgraded and 0 package will be installed.
Would you like to upgrade [Y/n]?

View file

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

View file

@ -1,7 +1,7 @@
PRGNAM="slpkg"
VERSION="1.8.1"
VERSION="1.8.2"
HOMEPAGE="https://github.com/dslackw/slpkg"
DOWNLOAD="https://github.com/dslackw/slpkg/archive/v1.8.1.tar.gz"
DOWNLOAD="https://github.com/dslackw/slpkg/archive/v1.8.2.tar.gz"
MD5SUM=""
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""

View file

@ -26,7 +26,7 @@ import subprocess
__all__ = "slpkg"
__author__ = "dslackw"
__version_info__ = (1, 8, 1)
__version_info__ = (1, 8, 2)
__version__ = "{0}.{1}.{2}".format(*__version_info__)
__license__ = "GNU General Public License v3 (GPLv3)"
__email__ = "d.zlatanidis@gmail.com"

View file

@ -33,7 +33,8 @@ from __metadata__ import log_path
def build_package(script, sources, path):
'''
Build package from source
Build package from source and
create log file in path /var/log/slpkg/logs/
'''
prgnam = script.replace(".tar.gz", "")
log_file = ("build_{0}_log".format(prgnam))

View file

@ -29,10 +29,9 @@ from pkg.find import find_package
from pkg.build import build_package
from pkg.manager import pkg_upgrade
from colors import colors
from messages import template, build_FAILED
from functions import get_file
from messages import template, build_FAILED
from __metadata__ import tmp, pkg_path, build_path
from init import initialization
@ -166,7 +165,7 @@ def sbo_check():
print("Upgrading:")
count_upgraded, count_installed = 0, 0
for upg, ver, arch in zip(pkg_for_upg, upg_ver, upg_arch):
if find_package(upg[:-(len(ver) + 1)], pkg_path):
if find_package(upg[:-len(ver)], pkg_path):
COLOR = colors.YELLOW
count_upgraded += 1
else:

View file

@ -27,8 +27,8 @@ import subprocess
from colors import colors
from functions import get_file
from messages import pkg_not_found, pkg_found, template, build_FAILED
from __metadata__ import tmp, pkg_path, build_path, log_path, sp
from messages import pkg_not_found, pkg_found, template, build_FAILED
from pkg.find import find_package
from pkg.build import build_package
@ -111,7 +111,7 @@ def sbo_build(name):
master_pkg = ("{0}-{1}".format(name, sbo_ver[-1]))
if find_package(master_pkg, pkg_path):
PKG_COLOR = colors.GREEN
elif find_package(name, pkg_path):
elif find_package(name + sp, pkg_path):
PKG_COLOR = colors.YELLOW
count_upgraded += 1
else:
@ -137,7 +137,7 @@ def sbo_build(name):
dep_pkg = ("{0}-{1}".format(dep, ver))
if find_package(dep_pkg, pkg_path):
DEP_COLOR = colors.GREEN
elif find_package(dep, pkg_path):
elif find_package(dep + sp, pkg_path):
DEP_COLOR = colors.YELLOW
count_upgraded += 1
else:
@ -224,7 +224,8 @@ def sbo_build(name):
installs.append(pkg)
versions.append(ver)
'''
Reference list only packages installed
Reference list with packages installed
and upgraded.
'''
if len(installs) > 1:
template(78)

View file

@ -27,8 +27,8 @@ import subprocess
from colors import colors
from functions import get_file
from messages import pkg_not_found, pkg_found, view_sbo, template, build_FAILED
from __metadata__ import tmp, build_path, pkg_path, slpkg_tmp, sp
from messages import pkg_not_found, pkg_found, view_sbo, template, build_FAILED
from pkg.build import build_package
from pkg.find import find_package