summaryrefslogtreecommitdiffstats
path: root/tags/d/debian-rules-parses-dpkg-parsechangelog.tag
diff options
context:
space:
mode:
Diffstat (limited to 'tags/d/debian-rules-parses-dpkg-parsechangelog.tag')
-rw-r--r--tags/d/debian-rules-parses-dpkg-parsechangelog.tag12
1 files changed, 12 insertions, 0 deletions
diff --git a/tags/d/debian-rules-parses-dpkg-parsechangelog.tag b/tags/d/debian-rules-parses-dpkg-parsechangelog.tag
new file mode 100644
index 0000000..4b5a0bd
--- /dev/null
+++ b/tags/d/debian-rules-parses-dpkg-parsechangelog.tag
@@ -0,0 +1,12 @@
+Tag: debian-rules-parses-dpkg-parsechangelog
+Severity: info
+Check: debian/rules
+Explanation: The rules file appears to be parsing the output of dpkg-parsechangelog to
+ determine the current package version name, version, or timestamp, etc.
+ .
+ Since dpkg 1.16.1, this could be replaced by including the
+ /usr/share/dpkg/pkg-info.mk Makefile library and using the
+ DEB_{SOURCE,VERSION} or SOURCE_DATE_EPOCH variables.
+ .
+ Using this library is not only cleaner and more efficient, it handles many
+ corner-cases such as binNMUs, epoch versions, etc.