mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-04-19 22:31:07 +00:00
ubuntu-build: fix used-before-assignment
``` ubuntu-build:244:40: E0601: Using variable 'necessary_privs' before assignment (used-before-assignment) ```
This commit is contained in:
parent
e7ba650414
commit
649c3db767
17
ubuntu-build
17
ubuntu-build
@ -240,15 +240,14 @@ def main():
|
||||
pocket=pocket,
|
||||
sourcepackagename=sources.getPackageName(),
|
||||
)
|
||||
|
||||
if operation == "retry" and not necessary_privs:
|
||||
Logger.error(
|
||||
"You cannot perform the %s operation on a %s package as you"
|
||||
" do not have the permissions to do this action.",
|
||||
operation,
|
||||
component,
|
||||
)
|
||||
sys.exit(1)
|
||||
if not necessary_privs:
|
||||
Logger.error(
|
||||
"You cannot perform the %s operation on a %s package as you"
|
||||
" do not have the permissions to do this action.",
|
||||
operation,
|
||||
component,
|
||||
)
|
||||
sys.exit(1)
|
||||
|
||||
# Output details.
|
||||
Logger.info(
|
||||
|
Loading…
x
Reference in New Issue
Block a user