mps-kirma

This commit is contained in:
milisbir 2017-08-30 22:58:39 +03:00
parent 1683bf19f6
commit de6421546f
1 changed files with 12 additions and 9 deletions

21
bin/mps
View File

@ -818,15 +818,17 @@ ters_bagimli_bilgi(){
kirik_ters_bagimli_bilgi(){ kirik_ters_bagimli_bilgi(){
gentalimatlar=$(ls $talimatname_dizin/genel/) gentalimatlar=$(ls $talimatname_dizin/genel/)
for tal in $gentalimatlar;do for tal in $gentalimatlar;do
#echo $tal #paket kuruluysa kontrolu yapılacak
bagimd=`cat $talimatname_dizin/genel/$tal/talimat | grep "Depends" | cut -d':' -f2` if [ -d "$VT/$tal" ];then
if [ -n "$bagimd" ]; then bagimd=`cat $talimatname_dizin/genel/$tal/talimat | grep "Depends" | cut -d':' -f2`
bagimd=`echo "$bagimd" | sed 's/,/ /g'` if [ -n "$bagimd" ]; then
for bag in $bagimd;do bagimd=`echo "$bagimd" | sed 's/,/ /g'`
if [ $bag = $1 ];then for bag in $bagimd;do
kirik_kontrol_paket $bag if [ $bag = $1 ];then
fi kirik_kontrol_paket $tal
done fi
done
fi
fi fi
done done
} }
@ -2258,3 +2260,4 @@ ana "$@"
#33 sari #33 sari
#34 mavi #34 mavi
#34 mor #34 mor
k