Bug#876434: [new check] detect outdated use of dpkg-parsechangelog | grep
Control: tag -1 moreinfo On Fri, Sep 22, 2017 at 09:48:02AM +0100, Chris West wrote: > 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) Do you mean like this? https://lintian.debian.org/tags/debian-rules-parses-dpkg-parsechangelog.html -- regards, Mattia Rizzolo GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`. more about me: https://mapreri.org : :' : Launchpad user: https://launchpad.net/~mapreri `. `'` Debian QA page: https://qa.debian.org/developer.php?login=mattia `- signature.asc Description: PGP signature
Processed: Re: Bug#876434: [new check] detect outdated use of dpkg-parsechangelog | grep
Processing control commands: > tag -1 moreinfo Bug #876434 [lintian] [new check] detect outdated use of dpkg-parsechangelog | grep Added tag(s) moreinfo. -- 876434: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876434 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
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.