projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2974af1
)
Remove unneeded regex grouping.
author
Ville Skyttä
<ville.skytta@iki.fi>
Sun, 24 Apr 2011 12:59:20 +0000
(15:59 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Fri, 29 Apr 2011 05:49:29 +0000
(08:49 +0300)
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
scripts/perl.prov
patch
|
blob
|
history
diff --git
a/scripts/perl.prov
b/scripts/perl.prov
index
32f27f2
..
400cb19
100755
(executable)
--- 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