remove unused files
[platform/upstream/build.git] / substitutedeps
index bf9815b..3d77840 100755 (executable)
@@ -113,9 +113,11 @@ for my $line (@$xspec) {
     }
   }
 
-  if ($line =~ /^Release:/i) {
+  if ($line =~ /^Release:(.*)\s*$/i) {
+    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
@@ -137,6 +139,7 @@ for my $line (@$xspec) {
       $line =~ s/<RELEASE\d*>/0/;
       $line =~ s/<CI_CNT>/0/;
       $line =~ s/<B_CNT>/0/;
+      $line =~ s/<SPEC_REL>/0/;
     }
     # this is to be compatible to legacy autobuild.
     # you can specify a releaseprg in the project configuration,