Subversion Repositories DevTools

Rev

Rev 6146 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6146 dpurdie 1
#!/usr/bin/perl
2
#
3
#   This simple CGI script is deployed to the package server within the
4
#   http subsystem ( lighttpd or apache )
5
#   
6
#   The function is used by Release Manager to probe for the existence of a
7
#   package-version
8
#   
9
#   A script is used to allow RM to test for package existence while providing
10
#   restricted access to the actual packages.
11
#   
12
#   This script must work within both lighttpd and apache. Issues: 
13
#       * lighttpd cannot return error codes
14
#   
15
use CGI;
6267 dpurdie 16
print CGI::header();
6146 dpurdie 17
my $cgi = CGI->new();
18
my $dpkg = "/export/devl/dpkg_archive";
19
my $url = join ('/', $dpkg,  scalar $cgi->param("path") );
20
if ( ! -d $url ) {
21
    printf("::NOTFOUND::$url");
22
}
23
else {
24
    printf("::FOUND::$url");
25
}
26