Changeset 115


Ignore:
Timestamp:
07/19/07 13:08:47 (17 years ago)
Author:
kdeugau
Message:

/trunk

Add a few tweaks to %files submacros: discard %ghost, recognize
%config(noreplace) (which is something of a nullop in .deb files)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r114 r115  
    727727      # Debian dpkg doesn't speak "%docdir".  Meh.
    728728      next LINE if /^\%docdir/;
     729      # dunno what to do with this; not sure if there's space in Debian's package structure for it.
     730      next LINE if /^\%ghost/;
    729731##fixme
    730732# Note that big chunks of this section don't match rpm's behaviour;  among other things,
     
    772774      # Conffiles.  Note that Debian and RH have similar, but not
    773775      # *quite* identical ideas of what constitutes a conffile.  Nrgh.
    774       if (/^\%config\s+(.+)$/) {
     776      # Note that dpkg will always ask if you want to replace the file - noreplace
     777      # is more or less permanently enabled.
     778##fixme
     779# also need to handle missingok (file that should be removed on uninstall)
     780      if (/^\%config(?:\(noreplace\))?\s+(.+)$/) {
    775781        $pkgdata{$subname}{conffiles} = 1;  # Flag it for later
    776782        my $tmp = $1;       # Now we can mangleificationate it.  And we probably need to.  :/
Note: See TracChangeset for help on using the changeset viewer.