From 9657063e80c1372f4199147193868bac6d3abdb7 Mon Sep 17 00:00:00 2001 From: milisbir Date: Mon, 29 Jan 2018 07:05:59 +0200 Subject: [PATCH] mpsd --- ayarlar/mpsd.conf | 2 +- bin/mps | 21 --------------------- bin/mpsd | 4 ++-- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/ayarlar/mpsd.conf b/ayarlar/mpsd.conf index 4f2fbeb00..11cf4ab3f 100644 --- a/ayarlar/mpsd.conf +++ b/ayarlar/mpsd.conf @@ -24,7 +24,7 @@ DOSYAIZLEME_YOKSAY="evet" PKGMK_UPDATE_INDEX="evet" PKGMK_KEEP_SOURCES="evet" PKGMK_CLEAN="yok" -PAKET_GRUPLAR=() +PAKET_GRUPLAR="" PAKET_LOKAL="tr" KOLEKSIYON_YOKSAY="yok" SURUM_YOKSAY="yok" diff --git a/bin/mps b/bin/mps index d527e0ded..9632d3d51 100755 --- a/bin/mps +++ b/bin/mps @@ -603,27 +603,6 @@ yeniden_paketle(){ lzip -9 "$1".mps } -talimat_bul_eski(){ - if [ -z "$1" ];then echo "$_paket_adi_gerekli";exit 1;fi - local _apaket="$1" - _bulunan=() - #_bulunan=$(find $talimatname $ektalimatname -name $_apaket) - _bulunan=() - while IFS= read -r -d $'\0'; do - _bulunan+=("$REPLY") - done < <(find $talimatname $ektalimatname -name ${_apaket} -print0) - if [ ${#_bulunan[@]} -gt 1 ];then echo "$(date +'%F %T') ${_apaket} $_talimat_sayisi_fazla" >> $LOGDIZIN/mps-hata.log;fi - if [ ${_bulunan[0]} ] ; then - if [ -f "${_bulunan[0]}/talimat" ];then - echo "${_bulunan[0]}" - else - echo "0" - fi - else - echo "-1" - fi -} - talimat_bul(){ local _apaket _bulunan _sonuc _donus _konum [ -z $1 ] && hata_olustu "_paket_adi_gerekli" diff --git a/bin/mpsd b/bin/mpsd index e0e078e04..fc17f65cf 100755 --- a/bin/mpsd +++ b/bin/mpsd @@ -748,7 +748,7 @@ build_package() { cd $PKG i=0 j=0 - for group in ${PAKET_GRUPLAR[@]}; do + for group in `echo ${PAKET_GRUPLAR} | tr " " "\n"`;do BUILD_SUCCESSFUL="evet" if [ "`type -t ${group}`" == "function" ]; then (set -e -x ;${group}) @@ -1420,7 +1420,7 @@ PKGMK_KEEP_SOURCES="yok" PKGMK_CLEAN="evet" PAKET_KURMA="evet" -PAKET_GRUPLAR=() +PAKET_GRUPLAR="" PAKET_LOKAL="tr" PKGMK_SOURCE_MIRRORS=()