Changeset 17528


Ignore:
Timestamp:
2008-10-13T21:48:48+13:00 (16 years ago)
Author:
ak19
Message:

New subroutine setIsGLI to store whether or not the download is run from within GLI (or from a command prompt). This is necessary since Downloads using Wget that are launched via GLI require sockets to enable premature termination of wget, whereas when downloads are run by executing downloadfrom.pl from the cmd line, the WgetDownload.pm's signal handler for Ctrl-C (SIGINT) is called instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/downloaders/BaseDownload.pm

    r17207 r17528  
    229229}
    230230
     231# method to set whether or not we're running the download scripts from GLI
     232sub setIsGLI()
     233{
     234    my ($self, $is_gli) = @_;
     235
     236    $self->{'gli'} = $is_gli;
     237}
     238
    231239sub error
    232240{
    233241      my ($strFunctionName,$strError) = @_;
    234242    {
    235     print "Error occoured in BaseDownload.pm\n".
     243    print "An error occurred in BaseDownload.pm\n".
    236244        "In Function: ".$strFunctionName."\n".
    237245        "Error Message: ".$strError."\n";
Note: See TracChangeset for help on using the changeset viewer.