fix null arguments

This commit is contained in:
dslackw 2014-05-11 11:34:22 +03:00
parent 0bdad2f46f
commit 08e87b9a53
4 changed files with 12 additions and 10 deletions

View file

@ -1,41 +1,40 @@
11-05-2014
Version 1.0.7
[Updated] - fix null arguments
11-05-2014
Version 1.0.6
[Updated] - updated slackbuild argument
10-05-2014
Version 1.0.5
[Feature] - Added auto build package choice
[Updated] - man page and README.rst file
10-05-2014
Version 1.0.3
[Updated] - bin/slpkg added function find_package
10-05-2014
Version 1.0.2
[Updated] - setup.py file
[Updated] - man page slpkg.8 added gziped
09-05-2014
Version 1.0.1
[Feature] - Added support install man page
09-05-2014
Version 1.0.0
[Feature] - Added man page
09-05-2014
Version 0.0.3

View file

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

View file

@ -7,7 +7,7 @@ import sys
import argparse
import subprocess
__version__ = "1.0.6"
__version__ = "1.0.7"
__author__ = "dslackw"
__license__ = "GPLv3"
@ -95,6 +95,9 @@ def main():
os.system("echo -e '\e[31mThe package is not found\e[39m'")
else:
os.system("cat {}".format(find_package(args.display)))
# fix null arguments
if not any([args.verbose, args.upgrade, args.reinstall, args.slackbuild, args.remove, args.list, args.find, args.display]):
os.system("slpkg -h")
main()

View file

@ -8,13 +8,13 @@ from distutils.core import setup
setup(
name='Slpkg',
py_modules=['slpkg'],
version='1.0.6',
version='1.0.7',
description="Python tool to manage Slackware packages",
keywords=["slpkg", "upgrade", "install", "remove", "view", "slackpkg", "tool"],
author="dslackw",
author_email="d.zlatanidis@gmail.com",
url="https://github.com/dslackw/slpkg",
download_url="https://github.com/dslackw/slpkg/archive/v1.0.6.tar.gz",
download_url="https://github.com/dslackw/slpkg/archive/v1.0.7.tar.gz",
scripts=['bin/slpkg'],
package_data={"": ["LICENSE", "README.rst", "CHANGELOG"]},
classifiers=[