Changeset 46


Ignore:
Timestamp:
02/24/06 16:41:44 (18 years ago)
Author:
kdeugau
Message:

/trunk

Fix macro expansion in %files; %config entries didn't get
macro-expanded. :(

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r45 r46  
    481481            $pkgdata{$pkgname}{conffiles} = 1;  # Flag it for later
    482482            my $tmp = $1;       # Now we can mangleificationate it.  And we probably need to.  :/
     483            $tmp = expandmacros($tmp, 'gp');  # Expand common macros
    483484            if ($tmp !~ /\s+/) {
    484485              # Simplest case, just a file.  Whew.
     
    488489              # Wot?  Spaces?  That means extra %-macros.  Which, for the most part, can be ignored.
    489490              ($tmp) = ($tmp =~ /.+\s([^\s]+)/);  # Strip everything before the last space
    490               $tmp = expandmacros($tmp, 'gp');  # Expand common macros
    491491              push @{$pkgdata{$pkgname}{conflist}}, $tmp;
    492492              $filelist{$pkgname} .= " $tmp";
     
    509509          $filelist{$pkgname} .= " $_";
    510510        }
    511         $filelist{$pkgname} = expandmacros($filelist{$pkgname}, 'g');
     511        $filelist{$pkgname} = expandmacros($filelist{$pkgname}, 'gp');
    512512      } # done %file section
    513513
Note: See TracChangeset for help on using the changeset viewer.