Changeset 1471


Ignore:
Timestamp:
Sep 21, 2013, 6:47:31 PM (10 years ago)
Author:
mbarry
Message:

shepherd: Even more help text during &require_module()

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/applications/shepherd

    r1470 r1471  
    22
    33our $progname = 'shepherd';
    4 my $version = '1.8.7';
     4my $version = '1.8.8';
    55
    66# tv_grab_au
     
    10391039    eval { require $modname; };
    10401040    if ($@) {
    1041         my $ubuntu_package_name = lc $modname;
    1042         $ubuntu_package_name =~ s/\//-/g;
    1043         $ubuntu_package_name =~ s/\.pm//;
     1041        my $ubuntu_package_name = lc $mod;
     1042        $ubuntu_package_name =~ s/::/-/g;
    10441043        &log("\n!!! ERROR: Mandatory module '$mod' not found.\n\n" .
    10451044             "    On Ubuntu distributions, you may be able to install\n" .
    10461045             "    this with the command:\n\n" .
    10471046             "    sudo apt-get install lib" . $ubuntu_package_name . "-perl\n\n" .
     1047             "    Otherwise, try:\n" .
     1048             "    sudo cpan " . $mod . "\n\n" .
    10481049             "For more help, see the Wiki at ".$wiki."/Installation\n", 1);
    10491050        exit(1);
  • trunk/status

    r1469 r1471  
    1 application     shepherd            1.8.6
     1application     shepherd            1.8.8
    22reference       channel_list        107
    33reference       Shepherd/Common.pm  1.10
Note: See TracChangeset for help on using the changeset viewer.