Verified Commit 94aacc0a authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Resolve stack trace when signed-off package is not installed

When a package is not installed, local_pkg is None.

Closes: FS#70389
parent 8930f0d0
Pipeline #6514 passed with stage
in 16 seconds
......@@ -399,6 +399,8 @@ def main(action, uninstalled, signed_off, quiet, username, password, package,
click.echo() # add a line between packages
elif action == "signoff": # sign-off packages
for signoff_pkg, local_pkg in packages:
if not local_pkg:
raise click.UsageError("{} package not installed".format(signoff_pkg['pkgbase']))
warn_if_outdated(signoff_pkg, local_pkg, colorize)
warn_if_bad(signoff_pkg, colorize)
if options.noconfirm or confirm("Sign off {}?".format(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment