Changeset 159 for trunk


Ignore:
Timestamp:
02/01/11 17:38:34 (14 years ago)
Author:
kdeugau
Message:

/trunk

Move %{<program>} macro expansion before user-defined macro
expansion to reduce the number of bogus "uninitialized value
in substitution iterator" warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r158 r159  
    17181718    $macrostring =~ s|%{_vendor}|$specglobals{'_vendor'}|g;
    17191719
     1720    # system programs.  RPM uses a global config file for these;  we'll just
     1721    # ASS-U-ME and make life a little simpler.
     1722    if ($macrostring =~ /\%\{\_\_([a-z0-9_-]+)\}/) {
     1723      $macrostring =~ s|%{__([a-z0-9_-]+)}|$1|g;
     1724    }
     1725
    17201726# should probably stick a "no runaway" flag in here...  Just In Case...
    17211727    # %define's
     
    17261732      $macrostring =~ s|%{$key}|$specglobals{$key}|g;
    17271733                # wanna limit this to "... if $specglobals{$key}", but need more magic
    1728     }
    1729 
    1730     # system programs.  RPM uses a global config file for these;  we'll just
    1731     # ASS-U-ME and make life a little simpler.
    1732     if ($macrostring =~ /\%\{\_\_([a-z0-9_-]+)\}/) {
    1733       $macrostring =~ s|%{__([a-z0-9_-]+)}|$1|g;
    17341734    }
    17351735
Note: See TracChangeset for help on using the changeset viewer.