From 318127d0a6377a92f382b8a5143d44b27e704bd8 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Sat, 23 Feb 2019 14:38:10 -0800 Subject: [PATCH] Minor bug fix to not pass None to db_modify() --- bin/addpkg | 6 +++++- bin/delpkg | 6 +++++- setup.py | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/bin/addpkg b/bin/addpkg index 1c33cac..0e49f30 100644 --- a/bin/addpkg +++ b/bin/addpkg @@ -78,7 +78,11 @@ if __name__ == '__main__': args = parser.parse_args() repo = args.repository pkgs = args.packages - opts = args.opts + + if args.opts is None: + opts = [] + else: + opts = args.opts cachedir = os.path.join('/var', 'cache', 'pacman', repo) # this assumes that the db file for the repo diff --git a/bin/delpkg b/bin/delpkg index cc768b2..088a190 100644 --- a/bin/delpkg +++ b/bin/delpkg @@ -72,7 +72,11 @@ if __name__ == '__main__': args = parser.parse_args() repo = args.repository pkgs = args.packages - opts = args.opts + + if args.opts is None: + opts = [] + else: + opts = args.opts cachedir = os.path.join('/var', 'cache', 'pacman', repo) # this assumes that the db file for the repo diff --git a/setup.py b/setup.py index 7a43254..0c571ae 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.rst", "r") as fh: setuptools.setup( name="packaging_scripts", - version="1.0", + version="1.0.1", author="Eric Russel Torres", author_email="erictorres4@protonmail.com", description="A set of helpers for automating borg interaction",