From f3f4ea6d1131e4fd21982a669edecbd386e2192f Mon Sep 17 00:00:00 2001 From: dslackw Date: Fri, 30 May 2014 04:50:43 +0300 Subject: [PATCH] updated for version 1.3.8 --- CHANGELOG | 5 +++++ PKG-INFO | 2 +- bin/slpkg | 13 +++++++++---- setup.py | 2 +- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index c234849e..af9a55f4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +30-05-2014 +Version 1.3.8 + +[Updated] - Fix no dependencies found + 29-05-2014 Version 1.3.7 diff --git a/PKG-INFO b/PKG-INFO index 4380ae0e..3b46f499 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: slpkg -Version: 1.3.7 +Version: 1.3.8 Author: dslackw Author-email: d zlatanidis at gmail com Maintainer: dslackw diff --git a/bin/slpkg b/bin/slpkg index 2be98da4..612b0fb4 100755 --- a/bin/slpkg +++ b/bin/slpkg @@ -51,7 +51,7 @@ import subprocess __author__ = "dslackw" -__version__ = "1.3.7" +__version__ = "1.3.8" __license__ = "GNU General Public License v3 (GPLv3)" __email__ = "d.zlatanidis@gmail.com" @@ -100,10 +100,10 @@ class colors: # check if user is root def s_user(user): - print if user == "root": pass else: + print print ("{}Must have {}`root`{} privileges ...{}\n".format(colors.RED, colors.GREEN, colors.RED, colors.ENDC)) sys.exit() @@ -722,10 +722,14 @@ def sbo_check(name): # find package and dependencies download, build and install def sbo_build(name): + s_user(getpass.getuser()) find_dependencies_links = sbo_dependencies_links_pkg(name) - # create one list - if find_dependencies_links != []: + + if find_dependencies_links == None: + sys.exit() + + elif find_dependencies_links != []: results = [] for i in range(len(find_dependencies_links)): for j in range(len(find_dependencies_links[i])): @@ -757,6 +761,7 @@ def sbo_build(name): # removes archives type filename = [] + y = 0 for i in range(len(files) / 2): if files[y].endswith("tar.gz"): diff --git a/setup.py b/setup.py index af043ae0..d976b76a 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ from distutils.core import setup setup( name = 'slpkg', - version = "1.3.7", + version = "1.3.8", description = "Python tool to manage Slackware packages", keywords = ["slackware", "slpkg", "upgrade", "install", "remove", "view", "slackpkg", "tool"],