Changeset 44778


Ignore:
Timestamp:
2015-03-15T12:07:52+01:00 (3 years ago)
Author:
nbd
Message:

scripts/feeds: remove useless install_method abstraction

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/feeds

    r44777 r44778  
    348348} 
    349349 
    350 sub install_generic() { 
     350sub do_install_package($$) { 
    351351        my $feed = shift; 
    352352        my $pkg = shift; 
     
    366366        return 0; 
    367367} 
    368  
    369 my %install_method = ( 
    370         'src-svn' => \&install_generic, 
    371         'src-cpy' => \&install_generic, 
    372         'src-link' => \&install_generic, 
    373         'src-git' => \&install_generic, 
    374         'src-gitsvn' => \&install_generic, 
    375         'src-bzr' => \&install_generic, 
    376         'src-hg' => \&install_generic, 
    377         'src-darcs' => \&install_generic, 
    378 ); 
    379368 
    380369my %feed; 
     
    450439                or warn "Installing package '$src'\n"; 
    451440 
    452         $install_method{$type} or do { 
    453                 warn "Unknown installation method: '$type'\n"; 
    454                 return 1; 
    455         }; 
    456  
    457         &{$install_method{$type}}($feed, $pkg) == 0 or do { 
     441        do_install_package($feed, $pkg) == 0 or do { 
    458442                warn "failed.\n"; 
    459443                return 1; 
Note: See TracChangeset for help on using the changeset viewer.