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:
4f598fe
)
fixed two bugs in the specfile parser
author
Michael Schröder
<mls@suse.de>
Thu, 19 Oct 2006 12:06:51 +0000
(12:06 +0000)
committer
Michael Schröder
<mls@suse.de>
Thu, 19 Oct 2006 12:06:51 +0000
(12:06 +0000)
Build.pm
patch
|
blob
|
history
diff --git
a/Build.pm
b/Build.pm
index
f707680
..
be3db56
100644
(file)
--- a/
Build.pm
+++ b/
Build.pm
@@
-401,7
+401,7
@@
sub expr {
return ($v, $expr) if $lev > 1;
($v2, $expr) = expr(substr($expr, 2), 1);
return undef unless defined $v2;
- $v
&&
= $v2;
+ $v
||
= $v2;
} elsif ($expr =~ /^>=/) {
return ($v, $expr) if $lev > 2;
($v2, $expr) = expr(substr($expr, 2), 2);
@@
-483,7
+483,7
@@
sub read_spec {
while (1) {
my $line;
if (@macros) {
- $line =
pop
@macros;
+ $line =
shift
@macros;
} elsif ($specdata) {
$inspec = 1;
last unless @$specdata;