Changeset 59

Show
Ignore:
Timestamp:
02/16/06 22:04:04 (2 years ago)
Author:
athomas
Message:
  • Test whether CPAN is configured before allowing cpan:// style URLs.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bpkg/trunk/bpkg

    r58 r59  
    399399        TARGET="$1" 
    400400        if [[ "$TARGET" = cpan://* ]]; then 
     401                (perl -e 'use CPAN::Config' > /dev/null 2>&1 || test -r ~/.cpan) || error "You do not appear to have configured CPAN. Please do so before continuing." 
    401402                CPAN_MODULE=`basename "$TARGET"` 
    402403                notice "Attempting to download CPAN module $CPAN_MODULE"