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