Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (3)
typo: modules (plural)
· 341c5684
Ansgar
authored
Apr 07, 2018
341c5684
remove unused variable
· 89240178
Ansgar
authored
Apr 07, 2018
89240178
acl deny: downgrade removing non-existing permissions to warning
· d574e840
Ansgar
authored
Apr 07, 2018
d574e840
Show whitespace changes
Inline
Side-by-side
dak/acl.py
View file @
d574e840
...
...
@@ -165,9 +165,8 @@ def acl_deny(acl_name, fingerprint, sources):
for
source
in
sources
:
result
=
session
.
execute
(
tbl
.
delete
().
where
(
tbl
.
c
.
acl_id
==
acl_id
).
where
(
tbl
.
c
.
fingerprint_id
==
fingerprint_id
).
where
(
tbl
.
c
.
source
==
source
))
if
result
.
rowcount
!=
1
:
# TODO: Nicer error message?
raise
Exception
(
"
Tried to deny uploads of
'
{}
'
, but was not allowed before.
"
.
format
(
source
))
if
result
.
rowcount
<
1
:
print
(
"
W: Tried to deny uploads of
'
{}
'
, but was not allowed before.
"
.
format
(
source
))
session
.
commit
()
...
...
dak/manage_external_signature_requests.py
View file @
d574e840
...
...
@@ -41,7 +41,7 @@ Logger = None
def
usage
(
exit_code
=
0
):
print
(
"""
Usage: dak manage-external-signature-requests [OPTIONS]
Manage external signature requests such as requests to sign EFI binaries or
kernel module.
kernel module
s
.
-h, --help show this help and exit
"""
)
...
...
@@ -60,7 +60,7 @@ def main ():
Arguments
=
[(
'
h
'
,
"
help
"
,
"
Manage-External-Signature-Requests::Options::Help
"
)]
queue_names
=
apt_pkg
.
parse_commandline
(
cnf
.
Cnf
,
Arguments
,
sys
.
argv
)
apt_pkg
.
parse_commandline
(
cnf
.
Cnf
,
Arguments
,
sys
.
argv
)
Options
=
cnf
.
subtree
(
"
Manage-External-Signature-Requests::Options
"
)
if
Options
[
"
Help
"
]:
...
...