diff options
author | Adrian Schröter <adrian@suse.de> | 2011-08-10 09:28:30 +0200 |
---|---|---|
committer | Adrian Schröter <adrian@suse.de> | 2011-08-10 09:29:00 +0200 |
commit | 624a02546f59e18fae1e8e2631523df75f3614e1 (patch) | |
tree | a9c962f6ec896e0bbf98bee6162a5130417cd1e6 /substitutedeps | |
parent | 9ca9af1a29b0a47c6b5418c5978617441b389303 (diff) |
- replace RELEASE place holders in spec files even when they come via SPEC_REL via project config
Diffstat (limited to 'substitutedeps')
-rwxr-xr-x | substitutedeps | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/substitutedeps b/substitutedeps index 32d1338..3d77840 100755 --- a/substitutedeps +++ b/substitutedeps @@ -117,6 +117,7 @@ for my $line (@$xspec) { my $spec_rel = $1; # User-provided value my $oldl = $line; if (defined $release) { + $line =~ s/<SPEC_REL>/$spec_rel/; if (!($line =~ s/<RELEASE\d*>/$release/g)) { if ($line =~ /<(?:CI_CNT|B_CNT)>/) { # XXX: should pass ci_cnt/b_cnt instead @@ -133,7 +134,6 @@ for my $line (@$xspec) { $line =~ s/^(Release:\s*).*/$1$release/i; } } - $line =~ s/<SPEC_REL>/$spec_rel/; } else { # remove macros, as rpm doesn't like them $line =~ s/<RELEASE\d*>/0/; |