Update calls to pkgfiles module
This commit is contained in:
parent
bc55d14bfa
commit
f849101d78
@ -80,7 +80,6 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
repo = args.repository
|
repo = args.repository
|
||||||
pkgs = args.packages
|
|
||||||
|
|
||||||
opts = [] if args.opts is None else args.opts
|
opts = [] if args.opts is None else args.opts
|
||||||
cachedir = (
|
cachedir = (
|
||||||
@ -97,12 +96,12 @@ if __name__ == "__main__":
|
|||||||
if args.verbose:
|
if args.verbose:
|
||||||
stdout_handler.setLevel(logging.DEBUG)
|
stdout_handler.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
if pkgs:
|
if args.packages:
|
||||||
pkg_tarballs = pkgs
|
pkg_tarballs = args.packages
|
||||||
sigfiles = []
|
sigfiles = []
|
||||||
else:
|
else:
|
||||||
pkg_tarballs = list(pkgfiles.get())
|
pkg_tarballs = list(pkgfiles.get())
|
||||||
sigfiles = pkgfiles.get(signatures_only=True)
|
sigfiles = list(pkgfiles.get(signatures_only=True))
|
||||||
|
|
||||||
if not pkg_tarballs:
|
if not pkg_tarballs:
|
||||||
syslog.critical("No package tarballs have been found, exiting")
|
syslog.critical("No package tarballs have been found, exiting")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user