Ignore:
Timestamp:
2014-12-11T18:58:24+13:00 (9 years ago)
Author:
Jeremy Symon
Message:

Changed package generators to not use the tmp directory needlessly, and fixed some problems with the debian generator. Still need to test on systems with rpm/apt and fix all the problems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/package-kits/linux/perllib/Greenstone/Package/_pacman.pm

    r29595 r29598  
    5454        exists $self->{config}->{PRE_REMOVE} or
    5555        exists $self->{config}->{POST_REMOVE}) {
    56         my $name = "$self->{config}->{NAME}.install";
    57         open my $INSTALL, '>', "/tmp/gspkg.$name";
     56        my $file = "$self->{output}/$self->{config}->{NAME}.install";
     57        print "    - $file\n";
     58        open my $INSTALL, '>', $file;
    5859        exists $self->{config}->{PRE_INSTALL} and do {
    5960            $self->write_function ("pre_install", $INSTALL, @{$self->{config}->{PRE_INSTALL}});
     
    6970            $self->write_function ("post_remove", $INSTALL, @{$self->{config}->{POST_REMOVE}});
    7071        close $INSTALL;
    71         $self->add ("/tmp/gspkg.$name", "$self->{output}/$name");
    72         return "install=$name";
     72        return "install=$file";
    7373    } else {
    7474        return "";
     
    8484        }
    8585    }
    86     open my $PKGBUILD, '>', "/tmp/gspkg.PKGBUILD";
     86    my $file = "$self->{output}/PKGBUILD";
     87    print "    - $file\n";
     88    open my $PKGBUILD, '>', $file;
    8789    for my $line (
    8890        '# Maintainer: %MAINTAINER_NAME% <%MAINTAINER_EMAIL%>',
     
    137139    }
    138140    close $PKGBUILD;
    139     $self->add ("/tmp/gspkg.PKGBUILD", "$self->{output}/PKGBUILD");
    140141}
    141142
Note: See TracChangeset for help on using the changeset viewer.