Ignore:
Timestamp:
2014-12-08T12:19:58+13:00 (9 years ago)
Author:
Jeremy Symon
Message:

Arch package now automatically sets the owner of the web directory to the tomcat user. The functionality is also implemented for the other package managers, but not yet tested.

File:
1 edited

Legend:

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

    r29536 r29546  
    88use Greenstone::Helpers;
    99use base 'Exporter';
    10 require Greenstone::Config::Loader;
    1110
    1211use parent 'Greenstone::Config';
     
    5352
    5453    # Classify ourselves as config and load the config
    55     my $self = bless({}, 'Greenstone::Config::Loader');
     54    my $self = bless({}, 'Greenstone::Config');
    5655
    5756    $self->readconf ("global.conf");
    5857    $self->readconf ($distro_conf);
    59     $self->readconf ($package_conf);
    60 
     58   
    6159    die "Distro '$args{distro}' is invalid (does not specify a manager)"
    6260        unless (exists $self->{config}->{MANAGER});
    6361
    6462    my $class = __PACKAGE__ . '::_' . lc $self->{config}->{MANAGER};
    65     eval "require $class; 1" or die "Package manager '$self->{config}->{MANAGER}' does not exist";
     63    eval "require $class; 1" or die "Package manager '$self->{config}->{MANAGER}' does not exist or did not compile";
    6664
    6765    # Reclassify as our implementation
    6866    bless $self, $class;
     67
     68    $self->readconf ($package_conf);
    6969
    7070    $self->{package} = $args{package};
     
    7575    $self->add_sources;
    7676    $self->add_makefile;
     77    $self->add_install;
    7778    $self->add_package;
    7879}
Note: See TracChangeset for help on using the changeset viewer.