diff options
author | Ludwig Nussel <ludwig.nussel@suse.de> | 2009-12-01 13:26:41 +0000 |
---|---|---|
committer | Ludwig Nussel <ludwig.nussel@suse.de> | 2009-12-01 13:26:41 +0000 |
commit | d173d7b9304f644b8055edc1489b3f7e2b086571 (patch) | |
tree | cd530fb22e660c5a1c16d05c16b14c59085d9255 /substitutedeps | |
parent | 172130bf5b7bc2fb08f65742a6e0120888df8a76 (diff) |
also substitute release '0'
Diffstat (limited to 'substitutedeps')
-rwxr-xr-x | substitutedeps | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/substitutedeps b/substitutedeps index d04aa52..97ba712 100755 --- a/substitutedeps +++ b/substitutedeps @@ -116,7 +116,7 @@ for my $l (@$xspec) { if ($l =~ /^Release:/i) { my $oldl = $l; - if ($release) { + if (defined $release) { if (!($l =~ s/<RELEASE\d*>/$release/g)) { if ($l =~ /<(?:CI_CNT|B_CNT)>/) { # XXX: should pass ci_cnt/b_cnt instead @@ -183,7 +183,7 @@ for my $l (@$xspec) { if ($nl[0]) { chomp $nl[0]; $l =~ s/^(Release:\s*).*/$1$nl[0]/i; - if ($release) { + if (defined $release) { if (!($l =~ s/<RELEASE\d*>/$release/g)) { if ($l =~ /<(?:CI_CNT|B_CNT)>/) { # XXX: should pass ci_cnt/b_cnt instead |