From f849101d78837dc109b3aa66838caf73824e175a Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Mon, 25 Mar 2019 17:02:23 -0700 Subject: [PATCH] Update calls to pkgfiles module --- bin/addpkg | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/addpkg b/bin/addpkg index 6b7a585..a546ee8 100644 --- a/bin/addpkg +++ b/bin/addpkg @@ -80,7 +80,6 @@ if __name__ == "__main__": args = parser.parse_args() repo = args.repository - pkgs = args.packages opts = [] if args.opts is None else args.opts cachedir = ( @@ -97,12 +96,12 @@ if __name__ == "__main__": if args.verbose: stdout_handler.setLevel(logging.DEBUG) - if pkgs: - pkg_tarballs = pkgs + if args.packages: + pkg_tarballs = args.packages sigfiles = [] else: pkg_tarballs = list(pkgfiles.get()) - sigfiles = pkgfiles.get(signatures_only=True) + sigfiles = list(pkgfiles.get(signatures_only=True)) if not pkg_tarballs: syslog.critical("No package tarballs have been found, exiting")