This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=c3eef3de424b3981aee23d31f0d00faa7a58213c commit c3eef3de424b3981aee23d31f0d00faa7a58213c Author: Guillem Jover <[email protected]> AuthorDate: Tue Dec 17 04:21:48 2024 +0100 scripts/mk: Clarify format for version variables from pkg-info.mk Describe more clearly what kind of value each variable will contain, with the generic format and a concrete example. Ref: #1088244 --- scripts/mk/pkg-info.mk | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/scripts/mk/pkg-info.mk b/scripts/mk/pkg-info.mk index 7c0b4162f..7ed491558 100644 --- a/scripts/mk/pkg-info.mk +++ b/scripts/mk/pkg-info.mk @@ -1,11 +1,24 @@ # This Makefile fragment (since dpkg 1.16.1) defines the following package # information variables: # +# For a source package with version 1:2.3-4, the output for the following +# variables is shown as an example, although notice that the epoch and +# revision parts can be omitted depending on the packaging. +# # DEB_SOURCE: Source package name. -# DEB_VERSION: Package's full version (epoch + upstream vers. + revision). +# DEB_VERSION: Package's full version. +# Format: [epoch:]upstream-version[-revision] +# Example: 1:2.3-4 # DEB_VERSION_EPOCH_UPSTREAM: Package's version without the Debian revision. +# Format: [epoch:]upstream-version +# Example: 1:2.3 # DEB_VERSION_UPSTREAM_REVISION: Package's version without the Debian epoch. -# DEB_VERSION_UPSTREAM: Package's upstream version. +# Format: upstream-version[-revision] +# Example: 2.3-4 +# DEB_VERSION_UPSTREAM: Package's upstream version without the Debian epoch +# or revision. +# Format: upstream-version +# Example: 2.3 # DEB_DISTRIBUTION: Distribution(s) listed in the current debian/changelog # entry. # DEB_TIMESTAMP: Source package release date as seconds since the epoch as -- Dpkg.Org's dpkg

