[libconfig-model-dpkg-perl] 05/07: use default value to generate std-version warning

dod at debian.org dod at debian.org
Tue Sep 13 08:52:40 UTC 2016


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

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit b8717fc5870c0320e882caec77f42731c817de52
Author: Dominique Dumont <dod at debian.org>
Date:   Mon Sep 12 18:57:56 2016 +0200

    use default value to generate std-version warning
    
    Like the previous commit, use the actual default value from the model to
    generate the warning message. This works only with Config::Model >=
    2.090.  Now only the default value needs to be updated when a new
    Std-version is published by Debian.
---
 lib/Config/Model/models/Dpkg/Control/Source.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/Config/Model/models/Dpkg/Control/Source.pl b/lib/Config/Model/models/Dpkg/Control/Source.pl
index 872577e..84532a4 100644
--- a/lib/Config/Model/models/Dpkg/Control/Source.pl
+++ b/lib/Config/Model/models/Dpkg/Control/Source.pl
@@ -300,7 +300,8 @@ Before updating this field, please read L<upgrading-checklist|https://www.debian
           'current' => {
             'code' => '$_ eq $self->_fetch_std;',
             'fix' => '$_ = undef; # restore default value',
-            'msg' => 'Current standards version is 3.9.8'
+            'msg' => 'Current standards version is \'$std_value\'. Please read file:///usr/share/doc/debian-policy/upgrading-checklist.txt.gz to check what changes need to applied to your package to upgrade it from standard version \'$_\' to \'$std_value\'.
+'
           }
         }
       },

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git



More information about the Pkg-perl-cvs-commits mailing list