Commits on Source (77)
-
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
93f8d818 -
Signed-off-by: Holger Levsen <holger@layer-acht.org>
669aad1f -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
1ee99023 -
Signed-off-by: Holger Levsen <holger@layer-acht.org>
56775e4b -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
75a0b62b -
Signed-off-by: Andreas Beckmann <anbe@debian.org> Signed-off-by: Holger Levsen <holger@layer-acht.org>
218fbe94 -
David Prévot authored
Use the same favicon as the one from www.d.o. Bug-Debian: https://bugs.debian.org/613543
988ada78 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
2efe2890 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
f2137c3c -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
42bfb2d6 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
98f8c745 -
PEP 469 -- Migration of dict iteration code to Python 3 https://www.python.org/dev/peps/pep-0469/ And in diff_meta_data function: - a dict (tree1, tree2) to iterate - a dict (tree1_c, tree2_c) copy to 'del dict[key]' To avoid RuntimeError or fail to iterate over all entries.
c3900457 -
7890a56e
-
cfce316a
-
6c81eae3
-
5663b2ef
-
b0cb5aab
-
e7d6549a
-
And: - Add README* files - Add license.txt file - Add sphinx files conf.py, index.txt
8d76da93 -
028bb676
-
67744ce8
-
Thomas Goirand authored0b47bf88
-
- Replaced python- with python3- in debian/control. - Removed all python2 (>= 2.7) by a ${python3:Depends}. - Replaced python2 by python3 in debian/rules. - Replaced dh_python2 stuff by dh_python3 in debian/rules. - Patched piupartslib/conf.py, piupartslib/dependencyparser.py, piupartslib/packagesdb.py, piupartslib/pkgsummary.py, tests/unittests.py so that they are Python 3 compatible. - Removed python-lzma (build-)depends as it's in standard in Py 3. - Add python3-six as (build-)depends. - Fix Makefile to use python3 and not python2. - d/piuparts-common.install: switch to python 3. - d/rules: remove all __pycache__ folder before proceeding to install. - Add --shebang=/usr/bin/python3 when calling dh_python3. - Do not use -N piuparts-master -N piuparts-slave when calling dh_python3 for the 2nd time, so that it correctly adds the interpreter as depends. - Lintian overrides "python-script-but-no-python-dep": that's ok, because piuparts-common already has the dependency.
336d7650 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
f74b24ce -
Signed-off-by: Holger Levsen <holger@layer-acht.org>
54b6c39c -
Signed-off-by: Holger Levsen <holger@layer-acht.org>
fae87fba -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
581cbd59 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
1f1b1646 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
1da95bc5 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
32b728fa -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
67671712 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
89dcb708 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
2ef03ff6 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
de0ca83c -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
762d7d31 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
8e822266 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
223c3acb -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
65fa5d92 -
Signed-off-by: Mattia Rizzolo <mattia@debian.org> Signed-off-by: Holger Levsen <holger@layer-acht.org>
dc410dd6 -
before, httperror was already out of scope, so it couldn't be raised again. Signed-off-by: Mattia Rizzolo <mattia@debian.org> Signed-off-by: Holger Levsen <holger@layer-acht.org>
46efe15c -
Signed-off-by: Mattia Rizzolo <mattia@debian.org> Signed-off-by: Holger Levsen <holger@layer-acht.org>
9838ed84 -
At this point it would probably be best to completely rewrite that thing using StringIO and some other nicer way to do buffering, but this should do the job for now. should fix: 09:46:14 Running section testing2sid (precedence=2) Traceback (most recent call last): File "/srv/piuparts.debian.org/share/piuparts/piuparts-slave", line 1064, in <module> main() File "/srv/piuparts.debian.org/share/piuparts/piuparts-slave", line 1029, in main test_count += section.run(do_processing=(test_count == 0)) File "/srv/piuparts.debian.org/share/piuparts/piuparts-slave", line 575, in run processed = self._process() File "/srv/piuparts.debian.org/share/piuparts/piuparts-slave", line 667, in _process packagenames) File "/srv/piuparts.debian.org/lib/python3/dist-packages/piupartslib/packagesdb.py", line 183, in load_packages_urls self._read_file(stream, restrict_packages=restrict_packages) File "/srv/piuparts.debian.org/lib/python3/dist-packages/piupartslib/packagesdb.py", line 190, in _read_file headers = rfc822_like_header_parse(input) File "/srv/piuparts.debian.org/lib/python3/dist-packages/piupartslib/packagesdb.py", line 53, in rfc822_like_header_parse line = input.readline() File "/srv/piuparts.debian.org/lib/python3/dist-packages/piupartslib/__init__.py", line 60, in readline empty = not self._refill() File "/srv/piuparts.debian.org/lib/python3/dist-packages/piupartslib/__init__.py", line 52, in _refill self._buffer = self._buffer + chunk TypeError: can only concatenate str (not "bytes") to str Signed-off-by: Mattia Rizzolo <mattia@debian.org> Signed-off-by: Holger Levsen <holger@layer-acht.org>
d892e48e -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
030f1e97 -
Holger Levsen authored
This reverts commit 030f1e97.
25130ee5 -
Bastian Venthur authored5583ce64
-
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
e0924c08 -
Nis Martensen authored
subprocess.Popen().stdout is a byte string in python3. We need to decode it since we want a unicode string here.
fecdaba6 -
Arguments were accidentally introduced when porting the code to python3. Remove them again. Fixes: File "/srv/piuparts.debian.org/lib/python3/dist-packages/piupartslib/dependencyparser.py", line 266, in _parse_version_dependency self._cursor.mynext(self._cursor) TypeError: mynext() takes 1 positional argument but 2 were given Signed-off-by: Holger Levsen <holger@layer-acht.org>
640284d2 -
While one set of dict_keys() was already wrapped in a list() during the initial porting work, the second one was still missing. Fixes: File "/srv/piuparts.debian.org/lib/python3/dist-packages/piupartslib/packagesdb.py", line 818, in get_best_package_state for state in self._good_states + list(self._propagate_waiting_state.keys()) + self._propagate_error_state.keys(): TypeError: can only concatenate list (not "dict_keys") to list Signed-off-by: Holger Levsen <holger@layer-acht.org>
09916537 -
Fixes: File "/srv/piuparts.debian.org/lib/python3/dist-packages/piupartslib/packagesdb.py", line 260, in create if os.write(fd, contents) != len(contents): TypeError: a bytes-like object is required, not 'str' Signed-off-by: Holger Levsen <holger@layer-acht.org>
8993738a -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
a065bef3 -
It is better to avoid using names of builtin functions as variable names. Signed-off-by: Holger Levsen <holger@layer-acht.org>
82709f47 -
When trying to decode a byte sequence into a string, it is possible that the sequence ends in the middle of a multibyte character. In this case the decoding fails. This hack assumes that the input byte sequence is always encoded in UTF-8, and that the original data stream never ends in the middle of a multibyte character. Signed-off-by: Holger Levsen <holger@layer-acht.org>
e526f8a1 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
0d44938b -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
45242102 -
No need to crash with a stacktrace when the slave is gone and the pipe to it is broken. Just log this and exit 1. Fixes: Traceback (most recent call last): File "/srv/piuparts.debian.org/share/piuparts/piuparts-master-backend", line 433, in <module> main() File "/srv/piuparts.debian.org/share/piuparts/piuparts-master-backend", line 423, in main m = Master(sys.stdin, sys.stdout) File "/srv/piuparts.debian.org/share/piuparts/piuparts-master-backend", line 154, in __init__ self._writeline("hello") File "/srv/piuparts.debian.org/share/piuparts/piuparts-master-backend", line 111, in _writeline self._output.flush() BrokenPipeError: [Errno 32] Broken pipe Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'> BrokenPipeError: [Errno 32] Broken pipe Signed-off-by: Holger Levsen <holger@layer-acht.org>
9171821b -
During the port to python3 piupartslib was changed to no longer auto-import some of its submodules. Import the required submodules directly where now needed. Fixes: Traceback (most recent call last): File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1910, in <module> main() File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1849, in main section = Section(section_name, master_directory, doc_root, packagedb_cache=packagedb_cache) File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 827, in __init__ self._load_package_database(section, master_directory) File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 859, in _load_package_database db = piupartslib.packagesdb.PackagesDB(prefix=sectiondir) AttributeError: module 'piupartslib' has no attribute 'packagesdb' Signed-off-by: Holger Levsen <holger@layer-acht.org>
dd4cd1a8 -
In python3 dict().keys() returns a dict_keys() view and not a list as in python2. Replace the now unavailable remove() by a set subtraction. Fixes: Traceback (most recent call last): File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1911, in <module> main() File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1851, in main section.generate_output(output_directory, section_names, problem_list, web_host) File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1660, in generate_output self.generate_html() File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1574, in generate_html self.cleanup_removed_packages(logs_by_dir) File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1536, in cleanup_removed_packages vdirs.remove("reserved") AttributeError: 'dict_keys' object has no attribute 'remove' Signed-off-by: Holger Levsen <holger@layer-acht.org>
cc30509e -
Fixes: Traceback (most recent call last): File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1911, in <module> main() File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1851, in main section.generate_output(output_directory, section_names, problem_list, web_host) File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1660, in generate_output self.generate_html() File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1580, in generate_html self.print_by_dir(self._output_directory, logs_by_dir) File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 943, in print_by_dir desc_by_dir[vdir], vlist) File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 930, in write_log_list_page "logrows": "".join(lines), File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 890, in _write_template_html write_template_html(filename, body, mapping, defer_if_unmodified=defer_if_unmodified, md5cache=self._md5cache) File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 714, in write_template_html content_md5 = hashlib.md5(htmlpage.safe_substitute(mapping)).hexdigest() TypeError: Unicode-objects must be encoded before hashing Signed-off-by: Holger Levsen <holger@layer-acht.org>
484bc88e -
Fixes: Traceback (most recent call last): File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1911, in <module> main() File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1851, in main section.generate_output(output_directory, section_names, problem_list, web_host) File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1660, in generate_output self.generate_html() File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1600, in generate_html pickle.dump(self._md5cache['new'], f) TypeError: write() argument must be str, not bytes Signed-off-by: Holger Levsen <holger@layer-acht.org>
08f9a354 -
Do not error out if the cache file is empty. Fixes: Traceback (most recent call last): File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1911, in <module> main() File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1851, in main section.generate_output(output_directory, section_names, problem_list, web_host) File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1660, in generate_output self.generate_html() File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1563, in generate_html self._md5cache['old'] = pickle.load(f) EOFError: Ran out of input Signed-off-by: Holger Levsen <holger@layer-acht.org>
f70767fe -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
837d794e -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
a43e4458 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
b5e2f2e2 -
Holger Levsen authored
d/rules: set GOCACHE to a safely writable directory during build as the cache is mandatory with Go 1.12. Signed-off-by: Holger Levsen <holger@layer-acht.org>
f1b72b2e -
Holger Levsen authored
after confirming with diffoscope that the changes are sane Signed-off-by: Holger Levsen <holger@layer-acht.org>
2f15d124 -
This regressed in 0b47bf88, which erroneously used the original trees rather than the modified copies. Signed-off-by: Holger Levsen <holger@layer-acht.org>
14c81dc7 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
b1738ebd -
piuparts-report may encounter old md5cache files pickled by python2 in text mode. Loading such files may fail if there are non-ascii characters. The existing cache files involved in generating the reports on piuparts.debian.org most likely use utf-8 encoding, so let's use that instead of the default assumption 'ascii'. Should fix: Traceback (most recent call last): File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1911, in <module> main() File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1851, in main section.generate_output(output_directory, section_names, problem_list, web_host) File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1660, in generate_output self.generate_html() File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1563, in generate_html self._md5cache['old'] = pickle.load(f) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 71: ordinal not in range(128) Signed-off-by: Holger Levsen <holger@layer-acht.org>
fda3b882 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
6347166f -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
c88b177f -
Holger Levsen authored
This reverts commit bdbd1952.
31a357ce -
Holger Levsen authoredcf5c153c
-
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
7c22ebb5 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
2294d417 -
Holger Levsen authored
Signed-off-by: Holger Levsen <holger@layer-acht.org>
0a86aa2f -
Holger Levsen authored308745d5
bug-templates/obsolete_conffiles.mail
0 → 100644
debian/clean
0 → 100644
debian/piuparts-master.lintian-overrides
0 → 100644
debian/piuparts-slave.lintian-overrides
0 → 100644
debian/piuparts.doc-base
0 → 100644
debian/piuparts.links
0 → 100644
debian/tests/control
0 → 100644
debian/tests/smoke-test
0 → 100755
This diff is collapsed.