From 5655c1da606f41985eae40696c6c7f0c5fc7eb9e Mon Sep 17 00:00:00 2001 From: milisbir Date: Thu, 18 Oct 2018 15:32:42 +0300 Subject: [PATCH] mps-tespit --- bin/mps | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bin/mps b/bin/mps index 5508ed651..5c030c3bf 100755 --- a/bin/mps +++ b/bin/mps @@ -1295,13 +1295,16 @@ guncelleme_tespit(){ grep -vxFf $dosya_t $dosya_k > $dosya_g # paketleri çekmek için satır sonu @ ekleme sed -i 's/$/@/' $dosya_ks - for _gunc in $(cat $dosya_g);do - _gunc2=$(echo ${_gunc} | cut -d'@' -f1) - grep -nr "^${_gunc2}@" $dosya_ks >> $dosya_son + for _satir in $(cat $dosya_g);do + _gpaket=$(echo ${_satir} | cut -d'@' -f1) + grep -nr "^${_gpaket}@" $dosya_ks >> $dosya_son done # güncellenecek paketlerin-kurulum sırasına göre sıralanıp, sadeleştirilmesi sort $dosya_son | cut -d':' -f2 | cut -d'@' -f1 > $dosya_sonuc - rm @dosya_t @dosya_k @dosya_ks @dosya_g @dosya_son + # geçici dosyaların silinmesi + rm -f @dosya_t @dosya_k @dosya_ks @dosya_g @dosya_son + # güncellenecek paket listesi yazdırılması + cat $dosya_sonuc } sistem_guncelle_uygula(){