Changeset 157


Ignore:
Timestamp:
02/01/11 17:21:11 (14 years ago)
Author:
kdeugau
Message:

/trunk

Error-reporting enhancement: Make error on failure to create
prep, build, install, and package-build scripts clear as to what failed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r155 r157  
    969969  my $prepscriptfile = "$tmpdir/deb-tmp.prep.".int(rand(99998)+1);
    970970  sysopen(PREPSCRIPT, $prepscriptfile, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW)
    971         or die $!;
     971        or die "Can't open/create prep script file $prepscriptfile: $!\n";
    972972  print PREPSCRIPT $scriptletbase;
    973973  print PREPSCRIPT $prepscript;
     
    993993  my $buildscriptfile = "$tmpdir/deb-tmp.build.".int(rand(99998)+1);
    994994  sysopen(BUILDSCRIPT, $buildscriptfile, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW)
    995         or die $!;
     995        or die "Can't open/create build script file $buildscriptfile: $!\n";
    996996  print BUILDSCRIPT $scriptletbase;
    997997  print BUILDSCRIPT $buildscript;
     
    10321032  my $installscriptfile = "$tmpdir/deb-tmp.inst.".int(rand(99998)+1);
    10331033  sysopen(INSTSCRIPT, $installscriptfile, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW)
    1034         or die $!;
     1034        or die "Can't open/create install script file $installscriptfile: $!\n";
    10351035  print INSTSCRIPT $scriptletbase;
    10361036  print INSTSCRIPT $installscript;
     
    12181218    my $debscriptfile = "$tmpdir/deb-tmp.pkg.".int(rand(99998)+1);
    12191219    sysopen(DEBSCRIPT, $debscriptfile, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW)
    1220         or die $!;
     1220        or die "Can't open/create package-creation script file $debscriptfile: $!\n";
    12211221    print DEBSCRIPT $scriptletbase;
    12221222    print DEBSCRIPT "fakeroot dpkg-deb -b $specglobals{buildroot}/$pkg $topdir/DEBS/$pkgdata{$pkg}{arch}/".
Note: See TracChangeset for help on using the changeset viewer.