1

Introduce buildinfo.pm, update sample config update TODO

+ Add buildinfo.pm - api for slackbuild env metadata
* Update .psgi files
* update sample config
* update TODO - remove checked-in milestones
This commit is contained in:
eleksir
2019-11-14 01:43:38 +03:00
parent 8a02a37c7a
commit 457d289f1c
6 changed files with 80 additions and 6 deletions

View File

@@ -6,6 +6,7 @@ use lib qw(./lib ./vendor_perl ./vendor_perl/lib/perl5);
use conf;
use upload;
use metagen;
use buildinfo;
my $CONF = loadConf();
@@ -38,9 +39,14 @@ my $app = sub {
if (defined($env->{HTTP_REPO})) {
($status, $content, $msg) = metagen($env->{HTTP_REPO});
}
} elsif ($env->{PATH_INFO} eq "$prefix/buildinfo") {
if (defined($env->{HTTP_REPO})) {
($status, $content, $msg) = buildinfo($env->{HTTP_REPO});
}
}
return [
$status,
[ 'Content-Type' => $content, 'Content-Length' => length($msg) ],