updated for version 1.3.8

This commit is contained in:
dslackw 2014-05-30 04:50:43 +03:00
parent 42909117b0
commit f3f4ea6d11
4 changed files with 16 additions and 6 deletions

View file

@ -1,3 +1,8 @@
30-05-2014
Version 1.3.8
[Updated] - Fix no dependencies found
29-05-2014
Version 1.3.7

View file

@ -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

View file

@ -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"):

View file

@ -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"],