From 7d065f48704b3cc3f536a36422eb715904d6f015 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 17 Mar 2016 18:58:21 +0200 Subject: [PATCH] malfs mekanizma guncelleme --- bin/mps | 7 ++++--- bin/pkvt_olustur | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/mps b/bin/mps index 6a9afa33c..7155f7ce1 100755 --- a/bin/mps +++ b/bin/mps @@ -4,7 +4,7 @@ versiyon="0.1" iletisim="milisarge@gmail.com" paketdepo="/depo/paketler/" -sunucu="192.168.3.192:8000/MPS/" +sunucu="192.168.1.23:8000/mps/" git_sunucu="https://github.com/milisarge/malfs-milis" ikaynak="" betikad=${0##*/} @@ -669,8 +669,9 @@ ayarlar "$@" if [ "$ikaynak" = "ag" ]; then echo "agdan cekiliyor:" "$2" - #pkt=`cat "$paketdepo""paket.vt" | grep -w "$2" | cut -d' ' -f2` - pkt=`cat "$paketdepo""paket.vt" | grep "$2"# | cut -d' ' -f2` + + pkt=`cat "$paketdepo""paket.vt" | grep "^$2 " | cut -d' ' -f3` + echo $pkt if [ ! -z "$pkt" -a "$pkt" != "" ]; then cpaket="${pkt/'#'/'%23'}" #paket sunucuda varsa diff --git a/bin/pkvt_olustur b/bin/pkvt_olustur index ad54fecdf..fe478cd27 100755 --- a/bin/pkvt_olustur +++ b/bin/pkvt_olustur @@ -7,7 +7,7 @@ pvt_olustur(){ do paketad="`echo $paket|cut -d "#" -f1`" shaek=`sha1sum $paket` - echo $shaek $paketad >> paket.vt + echo $paketad $shaek >> paket.vt done }