From 8ea2b7c6291744aeb09ea2f7f14d53a327ba9413 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 2 Feb 2012 09:23:01 +0000 Subject: [PATCH] centos: update version number only if it starts with a digit --- id-release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/id-release b/id-release index b9998d9..f10cbfa 100755 --- a/id-release +++ b/id-release @@ -69,7 +69,7 @@ fi perl -i.bak -npe "\$. == 1 && s,\(.*?\),($version)," debian/changelog # update redhat version file -perl -i.bak -npe "s,^Version: .*,Version: $version," $spec +perl -i.bak -npe "s,^Version: \d+.*,Version: $version," $spec -- 1.7.10.4