Bug#876434: [new check] detect outdated use of dpkg-parsechangelog | grep
Package: lintian
Version: 2.5.53
Priority: wishlist
Dear maintainer,
Many packages contain invocations such as:
DEB_VERSION=$(shell dpkg-changelog | grep '^Version' | cut ...)
https://codesearch.debian.net/search?q=path%3Adebian%2Frules+shell+dpkg-parsechangelog
Since dpkg 1.17 (available in "oldstable" as of today), this can better
be written as:
DEB_VERSION=$(shell dpkg-parsechangelog -SVersion)
Or:
include /usr/share/dpkg/pkg-info.mk; $(DEB_VERSION)
Please inform people that they should prefer the new syntax.
Cheers,
Chris.
Reply to: