This commit is contained in:
milisbir 2018-01-29 07:05:59 +02:00
parent af96ef0d4f
commit 9657063e80
3 changed files with 3 additions and 24 deletions

View File

@ -24,7 +24,7 @@ DOSYAIZLEME_YOKSAY="evet"
PKGMK_UPDATE_INDEX="evet" PKGMK_UPDATE_INDEX="evet"
PKGMK_KEEP_SOURCES="evet" PKGMK_KEEP_SOURCES="evet"
PKGMK_CLEAN="yok" PKGMK_CLEAN="yok"
PAKET_GRUPLAR=() PAKET_GRUPLAR=""
PAKET_LOKAL="tr" PAKET_LOKAL="tr"
KOLEKSIYON_YOKSAY="yok" KOLEKSIYON_YOKSAY="yok"
SURUM_YOKSAY="yok" SURUM_YOKSAY="yok"

21
bin/mps
View File

@ -603,27 +603,6 @@ yeniden_paketle(){
lzip -9 "$1".mps 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(){ talimat_bul(){
local _apaket _bulunan _sonuc _donus _konum local _apaket _bulunan _sonuc _donus _konum
[ -z $1 ] && hata_olustu "_paket_adi_gerekli" [ -z $1 ] && hata_olustu "_paket_adi_gerekli"

View File

@ -748,7 +748,7 @@ build_package() {
cd $PKG cd $PKG
i=0 i=0
j=0 j=0
for group in ${PAKET_GRUPLAR[@]}; do for group in `echo ${PAKET_GRUPLAR} | tr " " "\n"`;do
BUILD_SUCCESSFUL="evet" BUILD_SUCCESSFUL="evet"
if [ "`type -t ${group}`" == "function" ]; then if [ "`type -t ${group}`" == "function" ]; then
(set -e -x ;${group}) (set -e -x ;${group})
@ -1420,7 +1420,7 @@ PKGMK_KEEP_SOURCES="yok"
PKGMK_CLEAN="evet" PKGMK_CLEAN="evet"
PAKET_KURMA="evet" PAKET_KURMA="evet"
PAKET_GRUPLAR=() PAKET_GRUPLAR=""
PAKET_LOKAL="tr" PAKET_LOKAL="tr"
PKGMK_SOURCE_MIRRORS=() PKGMK_SOURCE_MIRRORS=()