Package: lintian-brush
Version: 0.38
Severity: minor

It may be useful to include the list of fixed lintian tags in the changelog
messages. Unfortunately dch makes it hard to influence the formatting, which 
means
that when we do this we end up with many multi-line changelog entries that I 
find hard to read:

  * Update standards version to 4.4.1, no changes needed. (fixes
    lintian: out-of-date-standards-version)
  * Bump debhelper from old 11 to 12. (fixes lintian: package-uses-old-
    debhelper-compat-version)
  * Drop unnecessary dependency on dh-autoconf. (fixes lintian: useless-
    autoreconf-build-depends)
  * Rely on pre-initialized dpkg-architecture variables. (fixes lintian:
    debian-rules-sets-dpkg-architecture-variable)
  * Fix day-of-week for changelog entries 1:4.4.4-5, 1:4.1.2-1. (fixes
    lintian: debian-changelog-has-wrong-day-of-week)

Patch:

diff --git a/lintian_brush/__init__.py b/lintian_brush/__init__.py
index 02f977d..93e1cc0 100644
--- a/lintian_brush/__init__.py
+++ b/lintian_brush/__init__.py
@@ -677,7 +677,11 @@ def run_lintian_fixer(local_tree, fixer, committer=None,
         update_changelog = False
 
     if update_changelog:
-        add_changelog_entry(local_tree, changelog_path, summary)
+        changelog_entry = summary
+        if result.fixed_lintian_tags:
+            changelog_entry += ' (fixes lintian: %s)' % (
+                ', '.join(result.fixed_lintian_tags))
+        add_changelog_entry(local_tree, changelog_path, changelog_entry)
         if specific_files:
             specific_files.append(changelog_path)


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.2.0-2-amd64 (SMP w/2 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lintian-brush depends on:
ii  devscripts           2.19.7
ii  python3              3.7.5-1
ii  python3-breezy       3.0.1-6
ii  python3-debian       0.1.36
ii  python3-distro-info  0.22
ii  python3-dulwich      0.19.13-1
ii  python3-levenshtein  0.12.0-3+b1
ii  python3-pkginfo      1.4.2-2
ii  python3-ruamel.yaml  0.15.89-3

Versions of packages lintian-brush recommends:
ii  dos2unix           7.4.0-2
ii  gpg                2.2.17-3
ii  libdebhelper-perl  12.7.1
ii  lintian            2.34.0
ii  python3-asyncpg    0.18.3-2
ii  python3-pyinotify  0.9.6-1.2

Versions of packages lintian-brush suggests:
pn  gnome-pkg-tools    <none>
ii  postgresql-common  209

-- no debconf information

Reply via email to