This commit is contained in:
milisbir 2018-06-21 11:15:38 +02:00
parent 85b45511bc
commit da2fac4718
1 changed files with 9 additions and 14 deletions

23
bin/mps
View File

@ -890,21 +890,16 @@ paket_kur_oto(){
} }
paket_kur_oto_zorla(){ paket_kur_oto_zorla(){
local kpkt pkt pak kliste local _pak _kliste
if [ "$1" = "-H" ];then [ ! -z $1 ] && _kliste=$1
ls *.mps.lz > "otokur.list" for _kpkt in `cat $_kliste`;do
kliste="otokur.list" for _pkt in `ls $_kpkt* | cut -d'#' -f1`;do
else _pak=`ls "$_pkt#"*`
kliste="$1" paket_sil "$_pkt" "evet"
fi yerelden_kur "$_pak" && paket_inkur_oto "$_pkt"
for kpkt in `cat $kliste`;do
for pkt in `ls $kpkt* | cut -d'#' -f1`;do
pak=`ls "$pkt#"*`
paket_sil "$pkt" "evet"
yerelden_kur "$pak" && paket_inkur_oto "$pkt"
done done
done done
rm -rf otokur.list rm -rf $_kliste
} }
paket_kur_liste(){ paket_kur_liste(){
@ -2919,7 +2914,7 @@ ayarlar() {
local templist local templist
templist=`mktemp` templist=`mktemp`
ls *.mps.lz > $templist ls *.mps.lz > $templist
mps -okz -H $templist ;; paket_kur_oto_zorla $templist ;;
-ko|--pkko) -ko|--pkko)
paket_kur_oto2 "$2" ;; paket_kur_oto2 "$2" ;;
-kuruld) -kuruld)