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:
@@ -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) ],
|
||||
|
||||
Reference in New Issue
Block a user