diff --git a/bin/mps b/bin/mps index a049d36d6..321fbceed 100755 --- a/bin/mps +++ b/bin/mps @@ -520,6 +520,24 @@ paketvt_kontrol(){ fi } +pvt_olustur(){ + if [ ! -f paket.vt ];then + touch paket.vt + fi + if [ -f "paket.vt" ];then + mv "paket.vt" "paket.vt.eski" + fi + for paket in `ls *.mps.lz` + ryaz 32 "paket.vt oluƟturuluyor...." + do + paketad="`echo $paket|cut -d "#" -f1`" + shaek=`sha1sum $paket` + + echo $paketad $shaek >> paket.vt + done + ryaz 32 "paket.vt oluƟturuldu." +} + yardim(){ echo "yardim" } @@ -570,6 +588,8 @@ ayarlar() { exit 1 fi yeniden_paketle "$2" ;; + -po) + pvt_olustur ;; -os|--pkos) if [ ! "$2" ]; then ryaz 31 "silme listesi yok" diff --git a/bin/pkvt_olustur b/bin/pkvt_olustur index 0a10a7598..a3955bae6 100755 --- a/bin/pkvt_olustur +++ b/bin/pkvt_olustur @@ -6,7 +6,7 @@ pvt_olustur(){ if [ -f "paket.vt" ];then mv "paket.vt" "paket.vt.eski" fi - for paket in `ls` + for paket in `ls *.mps.lz` do paketad="`echo $paket|cut -d "#" -f1`" shaek=`sha1sum $paket`