Changeset 299


Ignore:
Timestamp:
01.07.2009 19:02:39 (13 months ago)
Author:
henning
Message:

quickinst: bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quickinst/quickinst

    r287 r299  
    8989                cd $cache 
    9090                echo "  · $1" 
     91 
    9192                package=$(ls $1*.pkg.tar.gz 2>/dev/null | tail -1) 
    92                 [ -f "$package" ] && { 
    93                         tar xzf $package -C $target || 
     93 
     94                [ ! -f "$package" ] && 
     95                        $wget $source/$1*.pkg.tar.gz || 
    9496                        exit 1 
    95                 } || { 
    96                         $wget $source/$1*.tar.gz && 
    97                         tar xzf $1*.tar.gz -C $target || 
    98                         exit 1 
    99                 } 
     97 
     98                package=$(ls $1*.pkg.tar.gz | tail -1) 
     99                tar xzf $package -C $target || 
     100                exit 1 
    100101        } 
    101102} 
     
    131132                config="--config tmp/pacman.conf" 
    132133        } 
     134 
     135#       sed -ie "s/#S/S/g" etc/pacman.d/mirrorlist 
     136 
     137        cp etc/pacman.d/mirrorlist etc/pacman.d/mirrorlist.original 
     138        tmp=$(echo $source | sed -e "s/current/\$repo/") 
     139        echo "Server = $tmp" > etc/pacman.d/mirrorlist 
    133140 
    134141        [ $on_arch ] && { 
Note: See TracChangeset for help on using the changeset viewer.