Package: man-db Version: 2.7.0.2-5 Severity: normal Tags: patch Hi,
python3-debian will print warnings when parsing the changelog file from man-db: /usr/lib/python3/dist-packages/debian/changelog.py:275: UserWarning: Unexpected line while looking for next heading of EOF: * In man-db -69g: Mon, 5 Apr 1999 20:27:12 +0300 warnings.warn(message) /usr/lib/python3/dist-packages/debian/changelog.py:275: UserWarning: Unexpected line while looking for next heading of EOF: * corrected typo in aclocal.m4 that made detection of broken pclose warnings.warn(message) [...] A patch that fixes the mal-formed changelog entry is attached. A small script to reproduce the warning is also attached. -- Benjamin Drung System Developer Debian & Ubuntu Developer ProfitBricks GmbH Greifswalder Str. 207 D - 10405 Berlin Email: benjamin.dr...@profitbricks.com URL: https://www.profitbricks.de Sitz der Gesellschaft: Berlin Registergericht: Amtsgericht Charlottenburg, HRB 125506 B Geschäftsführer: Achim Weiss, Matthias Steinberg
>From 5b0380ba066dee971df9e4afbcc01f7745c64749 Mon Sep 17 00:00:00 2001 From: Benjamin Drung <benjamin.dr...@profitbricks.com> Date: Mon, 8 Jan 2018 14:02:59 +0100 Subject: [PATCH] Fix malformed debian/changelog entry python3-debian will print warnings when parsing the changelog file from man-db: /usr/lib/python3/dist-packages/debian/changelog.py:275: UserWarning: Unexpected line while looking for next heading of EOF: * In man-db -69g: Mon, 5 Apr 1999 20:27:12 +0300 warnings.warn(message) /usr/lib/python3/dist-packages/debian/changelog.py:275: UserWarning: Unexpected line while looking for next heading of EOF: * corrected typo in aclocal.m4 that made detection of broken pclose warnings.warn(message) [...] Fix the mal-formed changelog entry. --- debian/changelog | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/changelog b/debian/changelog index cd2d1054..610458ef 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2723,6 +2723,8 @@ man-db (2.3.10-69h) unstable; urgency=low -- Fabrizio Polacco <fpola...@debian.org> Fri, 9 Apr 1999 10:49:11 +0300 +man-db (2.3.10-69g) unstable; urgency=low + * In man-db -69g: Mon, 5 Apr 1999 20:27:12 +0300 * corrected typo in aclocal.m4 that made detection of broken pclose unavailable for configure. Thanx to UNO Takeshi <u...@sysplan.co.jp> -- 2.14.1
#!/usr/bin/python3 # Copyright (C) 2017, ProfitBricks GmbH # Authors: Benjamin Drung <benjamin.dr...@profitbricks.com> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """ Check changelog from /usr/share/doc/*/changelog.Debian.gz. Dependencies: apt install python3 python3-debian """ import gzip import os import debian.changelog def check(name): doc_dir = os.path.join("/usr/share/doc", name) changelog_filename = os.path.join(doc_dir, "changelog.Debian.gz") if not os.path.exists(changelog_filename): changelog_filename = os.path.join(doc_dir, "changelog.gz") changelog_file = gzip.open(changelog_filename, 'r') debian.changelog.Changelog(file=changelog_file) check("man-db")