diff --git a/bin/addpkg b/bin/addpkg index 35f8958..aac737d 100644 --- a/bin/addpkg +++ b/bin/addpkg @@ -59,14 +59,12 @@ def add_pkgfile(pkgfile, cachedir): if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument( - "-c", - "--cachedir", - help="alternative directory to use for moving package" + "-c", "--cachedir", help="alternative directory to use for moving package" ) parser.add_argument( "-d", "--db-filename", - help="alternative filename for database without extension" + help="alternative filename for database without extension", ) parser.add_argument( "-s", @@ -101,8 +99,8 @@ if __name__ == "__main__": else: cachedir = os.path.join("/var", "cache", "pacman", repo) - if args.db-filename is not None: - db = os.path.join(cachedir, f"{args.db-filename}.{DB_EXT}") + if args.db_filename is not None: + db = os.path.join(cachedir, f"{args.db_filename}.{DB_EXT}") else: db = os.path.join(cachedir, f"{repo}.{DB_EXT}") diff --git a/bin/delpkg b/bin/delpkg index d900d9d..91b05ea 100644 --- a/bin/delpkg +++ b/bin/delpkg @@ -54,14 +54,12 @@ def del_pkgfile(pkg): if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument( - "-c", - "--cachedir", - help="alternative directory to use for moving package" + "-c", "--cachedir", help="alternative directory to use for moving package" ) parser.add_argument( "-d", "--db-filename", - help="alternative filename for database without extension" + help="alternative filename for database without extension", ) parser.add_argument( "-s", @@ -96,8 +94,8 @@ if __name__ == "__main__": else: cachedir = os.path.join("/var", "cache", "pacman", repo) - if args.db-filename is not None: - db = os.path.join(cachedir, f"{args.db-filename}.{DB_EXT}") + if args.db_filename is not None: + db = os.path.join(cachedir, f"{args.db_filename}.{DB_EXT}") else: db = os.path.join(cachedir, f"{repo}.{DB_EXT}")