Changeset 44 for trunk


Ignore:
Timestamp:
02/24/06 16:13:39 (19 years ago)
Author:
kdeugau
Message:

/trunk

Bugfixing %files list now. A bare "/etc" (for instance) would
not *quite* get mispackaged, but it would generate Perl
"undefined" errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r43 r44  
    682682    foreach my $pkgfile (@pkgfilelist) {
    683683      $pkgfile = expandmacros($pkgfile, 'gp');
    684       my @filepath = ($pkgfile =~ m|(.+)/([^/]+)$|);
    685       qx { mkdir -p $buildroot/$pkg$filepath[0] }
    686         if $filepath[0] ne '';
    687       qx { mv $buildroot$pkgfile $buildroot/$pkg$filepath[0] };
     684      my ($fpath,$fname) = ($pkgfile =~ m|(.+?/?)?([^/]+)$|);   # We don't need $fname now, but we might.
     685      qx { mkdir -p $buildroot/$pkg$fpath }
     686        if $fpath && $fpath ne '';
     687      qx { mv $buildroot$pkgfile $buildroot/$pkg$fpath };
    688688    }
    689689
Note: See TracChangeset for help on using the changeset viewer.