summaryrefslogtreecommitdiff
path: root/substitutedeps
diff options
context:
space:
mode:
authorLudwig Nussel <ludwig.nussel@suse.de>2009-12-01 13:26:41 +0000
committerLudwig Nussel <ludwig.nussel@suse.de>2009-12-01 13:26:41 +0000
commitd173d7b9304f644b8055edc1489b3f7e2b086571 (patch)
treecd530fb22e660c5a1c16d05c16b14c59085d9255 /substitutedeps
parent172130bf5b7bc2fb08f65742a6e0120888df8a76 (diff)
also substitute release '0'
Diffstat (limited to 'substitutedeps')
-rwxr-xr-xsubstitutedeps4
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