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(){
local kpkt pkt pak kliste
if [ "$1" = "-H" ];then
ls *.mps.lz > "otokur.list"
kliste="otokur.list"
else
kliste="$1"
fi
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"
local _pak _kliste
[ ! -z $1 ] && _kliste=$1
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
rm -rf otokur.list
rm -rf $_kliste
}
paket_kur_liste(){
@ -2919,7 +2914,7 @@ ayarlar() {
local templist
templist=`mktemp`
ls *.mps.lz > $templist
mps -okz -H $templist ;;
paket_kur_oto_zorla $templist ;;
-ko|--pkko)
paket_kur_oto2 "$2" ;;
-kuruld)