From 5acdf363e82008ab9f24545a4cb10a03b4e7c433 Mon Sep 17 00:00:00 2001 From: milisbir Date: Sat, 12 Aug 2017 16:15:32 +0300 Subject: [PATCH] mps --- bin/mps | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/bin/mps b/bin/mps index 9957a62af..69f95fb57 100755 --- a/bin/mps +++ b/bin/mps @@ -114,9 +114,13 @@ icerik_ekle(){ paket_sil(){ local paket kkont sil_onay oto_silme paket="$1" + tersbag_goster="hayir" if [ "$2" ]; then oto_silme="$2" fi + if [ "$3" ]; then + tersbag_goster="evet" + fi if [ "$tpk" = "evet" ] && [ -d "$talimatname_dizin/temel/$1" ];then ryaz 31 "$1 temel sistem paketidir.Silinemez!!!" hataloglama "$1 temel sistem paketidir.Silinemez!!!" @@ -127,10 +131,12 @@ paket_sil(){ #dizin koruma kurban_kurtar $1 cat /var/lib/pkg/DB/$paket/kurulan | cut -d '>' -f2 > /tmp/$paket.sil - ryaz 31 "ters bagimliliklar" - ryaz 31 "------------------" - ters_bagimli_kontrol "$paket" - ryaz 31 "------------------" + if [ "$tersbag_goster" = "evet" ];then + ryaz 31 "ters bagimliliklar" + ryaz 31 "------------------" + ters_bagimli_kontrol "$paket" + ryaz 31 "------------------" + fi ryaz 31 "kurban dosyalar" ryaz 31 "------------------" silme_kurban_kontrol /tmp/$paket.sil @@ -1791,6 +1797,8 @@ ayarlar() { paket_sil "$2" ;; -sz|zorsil) paket_sil "$2" "evet";; + gsil) + paket_sil "$2" "hayir" "evet";; -S|silgrub) mps -bbd "$2" paket_sil_oto_onayli "$2.gerekler.liste" ;;