-
3ac5943a
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
process_commands: read commands from specified dir
The old code read the commands in the current dir.
-
23cb28b8
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
daklib/command.py: switch to new next() syntax
-
fd202fb3
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
dak/generate_index_diffs.py: use True instead of 1
-
758a98c5
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
dak/transitions.py: use 'isinstance()' instead of 'type() =='
-
f2133046
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
dak/show_deferred.py: replace map()
-
9efcda41
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
dak/show_new.py: replace filter()
-
a5ce8386
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
replace long() with int()
python3 doesn't have long, only int, and int works just as well in
python2.
-
2137a6b5
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
Add dependency on python{,3}-six
In practice, this is a no-op, because python{,3}-debian already depends
on it, but it's good to explicitly document the need.
-
138ae510
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
replace raw_input with six.moves.input
Explicitly call six.moves.input() instead of importing the function and
calling it as input(), to avoid running the unsafe input() under python2
if the import would be lost accidentally.
-
6e71a770
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
daklib/srcformats.py: use six to specify metaclass
-
095045ac
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
daklib/import_repository.py: use six for urlopen() call
-
9068eb88
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
replace iter{items,keys,values} with six function
-
16f6f588
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
Explicitly turn {items,keys,values}() into list where needed
In python3, these are iterators, which is fine in most situations. This
commit changes that places where it's not.
-
5d3b32b8
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
dak admin suite: force utf-8 using six.ensure_text
The type of the data depends on the python version. Just using decode()
doesn't work in python3.
-
d2e66fe6
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
daklib/command.py: replace translate() calls
The second argument to translate() is not available for str in python3.
-
d26d67d3
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
daklib/command.py: pass binary data to SignedFile
-
72af8f48
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
daklib/daklog.py: add log_traceback function
-
17674cf7
by Ivo De Decker
at 2020-04-17T21:26:09+00:00
dak/process_commands.py: improve exception logging
For CommandErrors (which are raised by daklib/commands.py), the log
message should be enough, but for other exceptions (which we don't
expect), a traceback is more useful to find out what's wrong.
-
b3b9ffcf
by Ivo De Decker
at 2020-04-17T21:26:45+00:00
daklib/utils.py: write mail files as text
-
400066ea
by Ivo De Decker
at 2020-04-17T21:26:45+00:00
daklib/rm.py: format date in python
-
b7a0ac6e
by Ivo De Decker
at 2020-04-17T21:26:45+00:00
replace unicode() calls with six function
-
cfe1e0be
by Ivo De Decker
at 2020-04-18T22:47:01+00:00
daklib/dakmultiprocessing.py: return traceback for exceptions
-
33b876cf
by Ivo De Decker
at 2020-04-18T22:47:01+00:00
dak/show_new.py: handle exceptions
-
a2bd0a8d
by Ivo De Decker
at 2020-04-18T22:47:01+00:00
examine_package: change handling of encodings and IO
This change should work in both python2 and python3.
Handle all data as str() in the functions that generate the data.
All functions in examine_package now return data, instead of writing it
themselves.
Don't replace stdout with the less fd, but write directly to less in
examine_package and process_new.
Force all output to less to be binary using six (which always uses
utf-8).
Dxplicitly open file as binary in strip_pgp_signature.
Write the html output to file as text in show_new.
-
e70579d5
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
load_keys: make sure data from gpg is str
-
6e558c85
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
daklib/dbconn.py: set database connection to utf-8 for python3
-
35c2c5d5
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
daklib/checks.py: use six function in check_fields_for_valid_utf8
-
2f95fde0
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
daklib/utils.py: handle encoding in gpg_get_key_addresses using six
-
800503da
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
daklib/dbconn.py: use textutils.force_to_utf8 for contents filename
-
fe40a27b
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
run-ci: define DAK_CI_OUTPUT_DIR
-
7fe8fe5a
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
integration-tests/common: add function to save ci artifacts
-
26a8d99d
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
integration-tests/dak-coverage.sh: fix coverage when working dir changes
-
263de962
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
gitlab-ci: coverage job only uses py2 data
Avoids failure if the py3 job is manually started.
-
eca7a4fc
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
run-ci: add annotated coverage report
-
80c0054a
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
run-ci: don't run 2to3, it's not needed anymore
-
d0101326
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
integration-tests: add check_output function
-
844cc634
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
test 0005-encoding: add extra checks
- run make-maintainers
- run queue-report
- add rdep check to dak rm
- test sending mail
- run show-new
- run check in process-new
-
f9aaeb44
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
tests: 2003-c-s-propup: remove first dinstall call
This test is the longest in the testsuite. The dinstall call for the
empty archive already runs in other tests, and removing it doesn't
affect the rest of the test.
-
c9d32297
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
Testsuite fixtures: change some uploaders and add extra package
Re-use most of the existing packages, but change the uploader for the dm
test. For the other tests, all keys are treated as DDs, so it doesn't
change anything.
-
12c6192c
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
Add test 0006-dm-commands
Test dm acls and commands.
-
89d55f0b
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
test 2000-dinstall: run make-changelog
-
68a76a37
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
test 2001-cruft: add cruft report
This test was also renamed from 2001-nviu.
-
a1c34baf
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
ci: remove stretch tests
We're not running stretch anymore. Also, some of the six functions are
not available on stretch.
-
08001a31
by Ivo De Decker
at 2020-04-18T22:47:45+00:00
Always run python3 tests, they succeed now.
The unit tests are run together with the other tests, so we don't need
to run them separately anymore.
-
a33ab970
by Joerg Jaspert
at 2020-05-02T22:44:48+02:00
Merge branch 'pr-199'
* pr-199: (44 commits)
Always run python3 tests, they succeed now.
ci: remove stretch tests
test 2001-cruft: add cruft report
test 2000-dinstall: run make-changelog
Add test 0006-dm-commands
Testsuite fixtures: change some uploaders and add extra package
tests: 2003-c-s-propup: remove first dinstall call
test 0005-encoding: add extra checks
integration-tests: add check_output function
run-ci: don't run 2to3, it's not needed anymore
run-ci: add annotated coverage report
gitlab-ci: coverage job only uses py2 data
integration-tests/dak-coverage.sh: fix coverage when working dir changes
integration-tests/common: add function to save ci artifacts
run-ci: define DAK_CI_OUTPUT_DIR
daklib/dbconn.py: use textutils.force_to_utf8 for contents filename
daklib/utils.py: handle encoding in gpg_get_key_addresses using six
daklib/checks.py: use six function in check_fields_for_valid_utf8
daklib/dbconn.py: set database connection to utf-8 for python3
load_keys: make sure data from gpg is str
...