mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
updated for version 1.3.5
This commit is contained in:
parent
3f33e588c1
commit
cf389134e0
6 changed files with 28 additions and 14 deletions
|
@ -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
|
||||
|
||||
|
|
2
PKG-INFO
2
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
|
||||
|
|
|
@ -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
|
||||
|
|
25
bin/slpkg
25
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
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
2
setup.py
2
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"],
|
||||
|
|
Loading…
Reference in a new issue