[dpkg] 81/187: dpkg-gencontrol: Implement source stanza substvars prefixed with S:

Reiner Herrmann reiner at reiner-h.de
Sun Nov 6 12:46:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

deki-guest pushed a commit to branch master
in repository dpkg.

commit 1c40b7de35c97b92876e29a3a8049c03207765c2
Author: Guillem Jover <guillem at debian.org>
Date:   Thu Aug 18 05:41:54 2016 +0200

    dpkg-gencontrol: Implement source stanza substvars prefixed with S:
    
    These auto-generated variables map each source stanza field into an
    output substvar prefixed with “S:”.
---
 debian/changelog           | 3 +++
 man/deb-substvars.man      | 8 ++++++++
 scripts/dpkg-gencontrol.pl | 1 +
 3 files changed, 12 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index e2d80fd..8b236b3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,6 +25,9 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
   * Shutdown the package database journal in dpkg --get-selections.
   * Fix (deactivated) dpkg --command-fd to initialize and reset the files
     database on each action.
+  * Implement source stanza substvars prefixed with S: in dpkg-gencontrol.
+    These auto-generated variables map each source stanza field into an
+    output substvar prefixed with “S:”.
   * Perl modules:
     - Obsolete Source-Version substvar in Dpkg::Substvars by emitting errors.
     - Rework keyring hooks in Dpkg::Vendor. Deprecate the keyrings hook, and
diff --git a/man/deb-substvars.man b/man/deb-substvars.man
index 6a0437a..0301662 100644
--- a/man/deb-substvars.man
+++ b/man/deb-substvars.man
@@ -135,6 +135,14 @@ is copied into the
 .B Installed\-Size
 control file field.
 .TP
+.BI S: fieldname
+The value of the source stanza field
+.I fieldname
+(which must be given in the canonical capitalisation; since dpkg 1.18.11).
+Setting these variables has no effect other than on places where they
+are expanded explicitly.
+These variables are only available when generating binary control files.
+.TP
 .BI F: fieldname
 The value of the output field
 .IR fieldname
diff --git a/scripts/dpkg-gencontrol.pl b/scripts/dpkg-gencontrol.pl
index 6d8a0ed..8d95610 100755
--- a/scripts/dpkg-gencontrol.pl
+++ b/scripts/dpkg-gencontrol.pl
@@ -200,6 +200,7 @@ foreach (keys %{$src_fields}) {
         field_transfer_single($src_fields, $fields);
     }
 }
+$substvars->set_field_substvars($src_fields, 'S');
 
 # Scan binary package
 foreach (keys %{$pkg}) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list