Minor bug fix to not pass None to db_modify()
This commit is contained in:
parent
80c567b7fb
commit
318127d0a6
@ -78,7 +78,11 @@ if __name__ == '__main__':
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
repo = args.repository
|
repo = args.repository
|
||||||
pkgs = args.packages
|
pkgs = args.packages
|
||||||
opts = args.opts
|
|
||||||
|
if args.opts is None:
|
||||||
|
opts = []
|
||||||
|
else:
|
||||||
|
opts = args.opts
|
||||||
|
|
||||||
cachedir = os.path.join('/var', 'cache', 'pacman', repo)
|
cachedir = os.path.join('/var', 'cache', 'pacman', repo)
|
||||||
# this assumes that the db file for the repo
|
# this assumes that the db file for the repo
|
||||||
|
@ -72,7 +72,11 @@ if __name__ == '__main__':
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
repo = args.repository
|
repo = args.repository
|
||||||
pkgs = args.packages
|
pkgs = args.packages
|
||||||
opts = args.opts
|
|
||||||
|
if args.opts is None:
|
||||||
|
opts = []
|
||||||
|
else:
|
||||||
|
opts = args.opts
|
||||||
|
|
||||||
cachedir = os.path.join('/var', 'cache', 'pacman', repo)
|
cachedir = os.path.join('/var', 'cache', 'pacman', repo)
|
||||||
# this assumes that the db file for the repo
|
# this assumes that the db file for the repo
|
||||||
|
2
setup.py
2
setup.py
@ -5,7 +5,7 @@ with open("README.rst", "r") as fh:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="packaging_scripts",
|
name="packaging_scripts",
|
||||||
version="1.0",
|
version="1.0.1",
|
||||||
author="Eric Russel Torres",
|
author="Eric Russel Torres",
|
||||||
author_email="erictorres4@protonmail.com",
|
author_email="erictorres4@protonmail.com",
|
||||||
description="A set of helpers for automating borg interaction",
|
description="A set of helpers for automating borg interaction",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user