From cf389134e09c3cf7bcce9feaa9260d68d1cf104e Mon Sep 17 00:00:00 2001 From: dslackw Date: Sat, 24 May 2014 10:09:34 +0300 Subject: [PATCH] updated for version 1.3.5 --- CHANGELOG | 6 ++++++ PKG-INFO | 2 +- README.rst | 5 +++-- bin/slpkg | 25 +++++++++++++++---------- man/slpkg.8 | 2 ++ setup.py | 2 +- 6 files changed, 28 insertions(+), 14 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 07147dba..ad176ac1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,9 @@ +24-05-2014 +Version 1.3.5 + +[Updated] - Fix print out "no dependecies" tracking function +[Updated] - Fix confirmation delete packages + 23-05-2014 Version 1.3.4 diff --git a/PKG-INFO b/PKG-INFO index 3e0baa70..4764baad 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: slpkg -Version: 1.3.4 +Version: 1.3.5 Author: dslackw Author-email: d zlatanidis at gmail com Maintainer: dslackw diff --git a/README.rst b/README.rst index 847415e7..94eab3ea 100644 --- a/README.rst +++ b/README.rst @@ -32,7 +32,7 @@ Features - Remove packages - Find installed packages - Display the contents of the packages - +- No dependencies It's a quick and easy way to manage your packages in slackware to a command. @@ -457,7 +457,8 @@ Remove package: WARNING: Unique directory /usr/lib64/python3.3/site-packages/ contains new files WARNING: Unique directory /usr/lib64/python3.3/ contains new files --> Deleting empty directory /usr/doc/termcolor-1.1.0/ - Done ... + + The package `termcolor` removed $ slpkg -f termcolor lua rar diff --git a/bin/slpkg b/bin/slpkg index ec32d83a..00b69030 100755 --- a/bin/slpkg +++ b/bin/slpkg @@ -46,7 +46,7 @@ import subprocess __author__ = "dslackw" -__version__ = "1.3.4" +__version__ = "1.3.5" __license__ = "GNU General Public License v3 (GPLv3)" __email__ = "d.zlatanidis@gmail.com" @@ -486,6 +486,10 @@ def pkg_tracking(name): find_dependencies = sbo_dependencies_pkg(name) if find_dependencies == None: pass + + elif find_dependencies == []: + print ("\n") + print ("{}No dependencies\n{}".format(colors.GREEN, colors.ENDC)) else: print ("\n") pkg_len = len(name) + 18 @@ -495,14 +499,11 @@ def pkg_tracking(name): print ("+" + "=" * pkg_len) find_dependencies.reverse() - if find_dependencies == []: - pass - else: - print (" |") - for i in range(len(find_dependencies)): - found = " --", str(len(find_dependencies[i])), " ".join(find_dependencies[i]) - print (" |") - print " ".join(found) + print (" |") + for i in range(len(find_dependencies)): + found = " --", str(len(find_dependencies[i])), " ".join(find_dependencies[i]) + print (" |") + print " ".join(found) print @@ -680,9 +681,9 @@ def pkg_reinstall(name): # uninstall package def pkg_remove(name): s_user(getpass.getuser()) - print print ("{}!!! WARNING !!!{}".format(colors.YELLOW, colors.ENDC)) remove_pkg = raw_input("Are you sure to remove this package(s) [y/n] ") + print if remove_pkg == "y" or remove_pkg == "Y": for i in range(len(name)): if find_package(name[i], packages) == []: @@ -691,6 +692,10 @@ def pkg_remove(name): else: os.system("removepkg {}".format(name[i])) + if find_package(name[i], packages) == []: + print + print ("{}The package {}`{}`{} removed{}".format(colors.YELLOW, + colors.CYAN, name[i], colors.YELLOW, colors.ENDC)) print diff --git a/man/slpkg.8 b/man/slpkg.8 index d2972ecc..e4fd0da6 100644 --- a/man/slpkg.8 +++ b/man/slpkg.8 @@ -177,6 +177,8 @@ $ \fBslpkg -r termcolor yetris\fP Package: yetris-2.0.1-x86_64-1_SBo Removing... + The package `termcolor` removed + $ \fBslpkg -f termcolor\fP The package 'termcolor' not found diff --git a/setup.py b/setup.py index 6f448b67..0614b3f6 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ from distutils.core import setup setup( name = 'slpkg', - version = "1.3.4", + version = "1.3.5", description = "Python tool to manage Slackware packages", keywords = ["slackware", "slpkg", "upgrade", "install", "remove", "view", "slackpkg", "tool"],