projects
/
platform
/
upstream
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc61576
)
- detect multiversion specfiles
author
Michael Schroeder
<mls@suse.de>
Thu, 26 Aug 2010 15:23:33 +0000
(17:23 +0200)
committer
Michael Schroeder
<mls@suse.de>
Thu, 26 Aug 2010 15:23:33 +0000
(17:23 +0200)
Build/Rpm.pm
patch
|
blob
|
history
diff --git
a/Build/Rpm.pm
b/Build/Rpm.pm
index
9d85d3b
..
4c3c8d2
100644
(file)
--- a/
Build/Rpm.pm
+++ b/
Build/Rpm.pm
@@
-334,6
+334,9
@@
sub parse {
push @$badarch, split(' ', $1);
}
}
+ if (@subpacks && $preamble && exists($ret->{'version'}) && $line =~ /^Version\s*:\s*(\S+)/i) {
+ $ret->{'multiversion'} = 1 if $ret->{'version'} ne $1;
+ }
if ($line =~ /^(?:Requires\(pre\)|Requires\(post\)|PreReq)\s*:\s*(\S.*)$/i) {
my $deps = $1;
my @deps = $deps =~ /([^\s\[,]+)(\s+[<=>]+\s+[^\s\[,]+)?(\s+\[[^\]]+\])?[\s,]*/g;