Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (7)
remove lots of unused imports
· 791306a8
Ansgar
authored
Apr 03, 2019
These were reported by flake8 as "F401 [...] imported but unused".
791306a8
silence warning "E305 expected 2 blank lines after class or function definition"
· 0bf4c90e
Ansgar
authored
Apr 04, 2019
0bf4c90e
silence warning "E999 SyntaxError: invalid syntax"
· 3ad52be5
Ansgar
authored
Apr 04, 2019
3ad52be5
silence warning "W391 blank line at end of file"
· a81eec2b
Ansgar
authored
Apr 04, 2019
a81eec2b
silence warning "E306 expected 1 blank line before a nested definition"
· 549d4c91
Ansgar
authored
Apr 04, 2019
549d4c91
silence warning "E731 do not assign a lambda expression, use a def"
· 2a841d0d
Ansgar
authored
Apr 04, 2019
2a841d0d
silence another SQLAlchemy warning about textual SQL expressions
· 8de9b493
Ansgar
authored
Apr 04, 2019
8de9b493
Show whitespace changes
Inline
Side-by-side
alembic/env.py
View file @
8de9b493
...
...
@@ -77,6 +77,7 @@ def run_migrations_online():
with
context
.
begin_transaction
():
context
.
run_migrations
()
if
context
.
is_offline_mode
():
run_migrations_offline
()
else
:
...
...
dak/add_user.py
View file @
8de9b493
...
...
@@ -154,5 +154,6 @@ def main():
#######################################################################################
if
__name__
==
'
__main__
'
:
main
()
dak/admin.py
View file @
8de9b493
...
...
@@ -234,6 +234,7 @@ def architecture(command):
else
:
die
(
"
E: architecture command unknown
"
)
dispatch
[
'
architecture
'
]
=
architecture
dispatch
[
'
a
'
]
=
architecture
...
...
@@ -311,6 +312,7 @@ def component(command):
else
:
die
(
"
E: component command unknown
"
)
dispatch
[
'
component
'
]
=
component
################################################################################
...
...
@@ -491,6 +493,7 @@ def suite(command):
else
:
die
(
"
E: suite command unknown
"
)
dispatch
[
'
suite
'
]
=
suite
dispatch
[
'
s
'
]
=
suite
...
...
@@ -602,6 +605,7 @@ def suite_architecture(command):
else
:
die
(
"
E: suite-architecture command unknown
"
)
dispatch
[
'
suite-architecture
'
]
=
suite_architecture
dispatch
[
'
s-a
'
]
=
suite_architecture
...
...
@@ -711,6 +715,7 @@ def suite_component(command):
else
:
die
(
"
E: suite-component command unknown
"
)
dispatch
[
'
suite-component
'
]
=
suite_component
dispatch
[
'
s-c
'
]
=
suite_component
...
...
@@ -788,6 +793,7 @@ def archive(command):
else
:
die
(
"
E: archive command unknown
"
)
dispatch
[
'
archive
'
]
=
archive
################################################################################
...
...
@@ -864,6 +870,7 @@ def version_check(command):
else
:
die
(
"
E: version-check command unknown
"
)
dispatch
[
'
version-check
'
]
=
version_check
dispatch
[
'
v-c
'
]
=
version_check
...
...
@@ -920,6 +927,7 @@ def show_config(command):
except
NoResultFound
:
print
(
"
W: option
'
%s
'
not set
"
%
mode
)
dispatch
[
'
config
'
]
=
show_config
dispatch
[
'
c
'
]
=
show_config
...
...
@@ -984,6 +992,7 @@ def keyring(command):
else
:
die
(
"
E: keyring command unknown
"
)
dispatch
[
'
keyring
'
]
=
keyring
dispatch
[
'
k
'
]
=
keyring
...
...
@@ -1037,6 +1046,7 @@ def change_component(args):
transaction
.
commit
()
dispatch
[
'
change-component
'
]
=
change_component
################################################################################
...
...
@@ -1058,6 +1068,7 @@ def forget_signature(args):
print
(
"
Signature was not known to dak.
"
)
session
.
rollback
()
dispatch
[
'
forget-signature
'
]
=
forget_signature
################################################################################
...
...
@@ -1091,5 +1102,6 @@ def main():
################################################################################
if
__name__
==
'
__main__
'
:
main
()
dak/archive_dedup_pool.py
View file @
8de9b493
...
...
@@ -28,7 +28,6 @@ from __future__ import print_function
import
apt_pkg
import
errno
import
os
import
stat
import
sys
from
daklib.dbconn
import
DBConn
...
...
@@ -147,5 +146,6 @@ def main():
################################################################################
if
__name__
==
'
__main__
'
:
main
()
dak/auto_decruft.py
View file @
8de9b493
...
...
@@ -474,5 +474,6 @@ def main():
################################################################################
if
__name__
==
'
__main__
'
:
main
()
dak/bts_categorize.py
View file @
8de9b493
...
...
@@ -63,6 +63,7 @@ OPTIONS
Print this documentation.
"""
)
arguments
=
[(
'
s
'
,
'
simulate
'
,
'
BtsCategorize::Options::Simulate
'
),
(
'
v
'
,
'
verbose
'
,
'
BtsCategorize::Options::Verbose
'
),
(
'
q
'
,
'
quiet
'
,
'
BtsCategorize::Options::Quiet
'
),
...
...
dak/check_archive.py
View file @
8de9b493
...
...
@@ -32,7 +32,6 @@
from
__future__
import
print_function
import
commands
import
os
import
stat
import
sys
...
...
@@ -502,6 +501,7 @@ def check_build_depends():
################################################################################
_add_missing_source_checksums_query
=
R
"""
INSERT INTO source_metadata
(src_id, key_id, value)
...
...
@@ -600,5 +600,6 @@ def main():
################################################################################
if
__name__
==
'
__main__
'
:
main
()
dak/check_overrides.py
View file @
8de9b493
...
...
@@ -56,7 +56,6 @@
from
__future__
import
print_function
import
os
import
sys
import
apt_pkg
...
...
@@ -399,5 +398,6 @@ def main():
################################################################################
if
__name__
==
'
__main__
'
:
main
()
dak/clean_queues.py
View file @
8de9b493
...
...
@@ -40,7 +40,7 @@ import os.path
import
stat
import
sys
import
time
from
datetime
import
datetime
,
timedelta
from
datetime
import
datetime
import
apt_pkg
from
daklib
import
utils
from
daklib
import
daklog
...
...
@@ -247,5 +247,6 @@ def main():
#######################################################################################
if
__name__
==
'
__main__
'
:
main
()
dak/clean_suites.py
View file @
8de9b493
...
...
@@ -41,9 +41,8 @@ import os
import
sqlalchemy.sql
as
sql
import
stat
import
sys
import
time
import
apt_pkg
from
datetime
import
datetime
,
timedelta
from
datetime
import
datetime
from
daklib.config
import
Config
from
daklib.dbconn
import
*
...
...
@@ -545,5 +544,6 @@ def main():
################################################################################
if
__name__
==
'
__main__
'
:
main
()
dak/control_overrides.py
View file @
8de9b493
...
...
@@ -371,5 +371,6 @@ def main():
#######################################################################################
if
__name__
==
'
__main__
'
:
main
()
dak/control_suite.py
View file @
8de9b493
...
...
@@ -473,5 +473,6 @@ def main():
#######################################################################################
if
__name__
==
'
__main__
'
:
main
()
dak/copy_installer.py
View file @
8de9b493
...
...
@@ -76,6 +76,7 @@ def main():
copier
.
do_copy
()
print
(
'
Installer has been copied successfully.
'
)
root_dir
=
Config
()[
'
Dir::Root
'
]
...
...
dak/cruft_report.py
View file @
8de9b493
...
...
@@ -37,7 +37,6 @@ Check for obsolete binary packages
from
__future__
import
print_function
import
commands
import
functools
import
os
import
sys
...
...
dak/dak.py
View file @
8de9b493
...
...
@@ -41,7 +41,6 @@ import traceback
import
daklib.utils
from
daklib.daklog
import
Logger
from
daklib.config
import
Config
from
daklib.dak_exceptions
import
CantOpenError
################################################################################
...
...
@@ -243,6 +242,7 @@ def main():
################################################################################
if
__name__
==
"
__main__
"
:
os
.
environ
[
'
LANG
'
]
=
'
C
'
os
.
environ
[
'
LC_ALL
'
]
=
'
C
'
...
...
dak/dakdb/update101.py
View file @
8de9b493
...
...
@@ -29,7 +29,6 @@ from __future__ import print_function
import
psycopg2
from
daklib.dak_exceptions
import
DBUpdateError
from
daklib.config
import
Config
################################################################################
...
...
dak/dakdb/update114.py
View file @
8de9b493
...
...
@@ -29,7 +29,6 @@ from __future__ import print_function
import
psycopg2
from
daklib.dak_exceptions
import
DBUpdateError
from
daklib.config
import
Config
################################################################################
...
...
dak/dakdb/update116.py
View file @
8de9b493
...
...
@@ -10,7 +10,6 @@ from __future__ import print_function
import
psycopg2
from
daklib.dak_exceptions
import
DBUpdateError
from
daklib.config
import
Config
def
do_update
(
self
):
...
...
dak/dakdb/update121.py
View file @
8de9b493
...
...
@@ -29,7 +29,6 @@ from __future__ import print_function
import
psycopg2
from
daklib.dak_exceptions
import
DBUpdateError
from
daklib.config
import
Config
################################################################################
...
...
dak/dakdb/update69.py
View file @
8de9b493
...
...
@@ -78,6 +78,6 @@ $function$""")
c
.
execute
(
"
UPDATE config SET value =
'
69
'
WHERE name =
'
db_revision
'"
)
self
.
db
.
commit
()
except
psycopg2
.
ProgrammingError
,
msg
:
except
psycopg2
.
ProgrammingError
as
msg
:
self
.
db
.
rollback
()
raise
DBUpdateError
(
'
Unable to apply sick update 69, rollback issued. Error message : %s
'
%
(
str
(
msg
)))
Prev
1
2
3
4
5
6
Next