[libconfig-model-dpkg-perl] 01/01: bump-dependency-version: pkg arg can be a regexp

dod at debian.org dod at debian.org
Tue Feb 6 17:43:15 UTC 2018


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 d40abf953bd0366114bf17909a4a72aa96db37d4
Author: Dominique Dumont <dod at debian.org>
Date:   Tue Feb 6 18:42:24 2018 +0100

    bump-dependency-version: pkg arg can be a regexp
---
 lib/Config/Model/scripts/bump-dependency-version | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lib/Config/Model/scripts/bump-dependency-version b/lib/Config/Model/scripts/bump-dependency-version
index 220f6d1..87672a8 100644
--- a/lib/Config/Model/scripts/bump-dependency-version
+++ b/lib/Config/Model/scripts/bump-dependency-version
@@ -1,10 +1,12 @@
 doc: update required version of a dependency and commit the change
 doc: parameters: pkg, version
-doc: example: cme run bump-dependency-version -arg pkg=libconfig-model-perl -arg version=2.101
-
+doc: pkg can be a Perl regular expression to change related dependencies in one call
+doc: example:
+doc:   cme run bump-dependency-version -arg pkg=libconfig-model-perl -arg version=2.101
+doc:   cme run bump-dependency-version -arg 'pkg=libuv1.*' -arg version=1.18.0
 app: dpkg-control
 
-var: $var{change_it} = "s/^$args{pkg}(\\s|\\(|\$).*/$args{pkg} (>= $args{version})/"  ;
+var: $var{change_it} = "s/^($args{pkg})(?:\\s|\\(?:|\$).*/\\1 (>= $args{version})/"  ;
 
 load: ! source Build-Depends:=~"$change_it"
 load: ! source Build-Depends-Indep:=~"$change_it"

-- 
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