Changeset 106


Ignore:
Timestamp:
06/20/07 15:37:57 (17 years ago)
Author:
kdeugau
Message:

/trunk

Add glob handling to %config lines in the %files section. It needs to
be explicit so that we can actually stuff all of the real filenames
into the DEBIAN/conffiles .deb metadata block. :/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r105 r106  
    10311031      open CONFLIST, ">$buildroot/$pkg/DEBIAN/conffiles";
    10321032      foreach my $conffile (@{$pkgdata{$pkg}{conflist}}) {
    1033         print CONFLIST "$conffile\n";
     1033        my @tmp = glob "$buildroot/$pkg/$conffile";
     1034        foreach (@tmp) {
     1035          s|$buildroot/$pkg/||g;        # nrgl.  gotta be a better way to do this...
     1036          s/\s+/\n/g;   # Not gonna support spaces in filenames.  Ewww.
     1037          print CONFLIST "$_\n";
     1038        }
    10341039      }
    10351040      close CONFLIST;
Note: See TracChangeset for help on using the changeset viewer.