Changeset 9


Ignore:
Timestamp:
11/02/05 14:37:45 (19 years ago)
Author:
kdeugau
Message:

/trunk

Bugfix - clean up creation of %_topdir/DEBS/i386 directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r8 r9  
    483483# Creates the binary .deb package from the installed tree in $buildroot.
    484484sub binpackage {
     485  # Some checks on the .deb file location
     486  if (!-e "$topdir/DEBS/i386") {
     487#       "if [ -e $topdir/DEBS/i386 ]; then\n\tmkdir $topdir/DEBS/i386\nfi\n".
     488    mkdir "$topdir/DEBS/i386";
     489  }
    485490  # Gotta do this first, otherwise the control file has nowhere to go.  >:(
    486 eval {
    487491  mkdir "$buildroot/DEBIAN";
    488 };
    489 die $@ if $@;
    490492
    491493  # create script filename
     
    495497  print DEBSCRIPT $scriptletbase;
    496498  print DEBSCRIPT "tree $buildroot\n".
    497         "mkdir $topdir/DEBS/i386\n".
    498         "dpkg-deb -b $buildroot $topdir/DEBS/i386/$pkgdata{main}{name}_$pkgdata{main}{version}-$pkgdata{main}{release}_i386.deb\n";
     499        "fakeroot dpkg-deb -b $buildroot $topdir/DEBS/i386/$pkgdata{main}{name}_$pkgdata{main}{version}-$pkgdata{main}{release}_i386.deb\n";
    499500
    500501  close DEBSCRIPT;
Note: See TracChangeset for help on using the changeset viewer.