summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-04-24 15:59:20 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-04-29 08:49:29 +0300
commit5d297141cd647c3cb0a8914e595c56d0ecc9447c (patch)
treef51902fe741c1ecd038ae6fa34475da1ebeea679 /scripts
parent2974af1466932b9e874c59e77907d9280e239352 (diff)
downloadrpm-5d297141cd647c3cb0a8914e595c56d0ecc9447c.tar.gz
rpm-5d297141cd647c3cb0a8914e595c56d0ecc9447c.tar.bz2
rpm-5d297141cd647c3cb0a8914e595c56d0ecc9447c.zip
Remove unneeded regex grouping.
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/perl.prov4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/perl.prov b/scripts/perl.prov
index 32f27f2c5..400cb198b 100755
--- a/scripts/perl.prov
+++ b/scripts/perl.prov
@@ -162,8 +162,8 @@ sub process_file {
# '$Revision' this often causes bizarre strings and is the most
# common method of non static numbering.
- if (m/(\$Revision: (\d+[.0-9]+))/) {
- $version = $2;
+ if (m/\$Revision: (\d+[.0-9]+)/) {
+ $version = $1;
} elsif (m/['"]?(\d+[.0-9]+)['"]?/) {
# look for a static number hard coded in the script