Subversion Repositories DevTools

Rev

Go to most recent revision | Details | 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;
16
my $cgi = CGI->new();
17
my $dpkg = "/export/devl/dpkg_archive";
18
my $url = join ('/', $dpkg,  scalar $cgi->param("path") );
19
if ( ! -d $url ) {
20
    printf("::NOTFOUND::$url");
21
}
22
else {
23
    printf("::FOUND::$url");
24
}
25