diff --git a/bin/mps b/bin/mps index 0e7770be5..4a16c1027 100755 --- a/bin/mps +++ b/bin/mps @@ -248,8 +248,8 @@ paket_sil(){ hataloglama "kritik mesaj:kurulanlar dosyası yok." fi elif [ "$kkont" = "degil" ];then - $_yaz "$_zaten $_paket_kurulu_degil" - hataloglama "$_zaten $_paket_kurulu_degil" + $_yaz "$_zaten $paket $_paket_kurulu_degil" + hataloglama "$_zaten $paket $_paket_kurulu_degil" else $_yaz "$_paket_tanimsiz" hataloglama "$_paket_tanimsiz" @@ -481,6 +481,21 @@ paket_bilgi_html(){ echo "$icerik" > $_dosya.html } +# paketlerin toplu tablo gösterimi +paketler_depo_html(){ + icerik="" + for _paket in $(ls $VT);do + # ikon arşive baktırılacak varsa programın kendi ikonu yoksa öntanımlı ikon kullanılacak + _simge_dosya="/static/package.png" + #echo "dosya: /srv/http/komser/static/simgeler/${_paket}.png" + [ -f /srv/http/komser/static/simgeler/${_paket}.png ] && _simge_dosya="/static/simgeler/$_paket.png" + [ $(ls /srv/http/komser/static/simgeler/${_paket}_* | head -n1) ] && _simge_dosya="/static/simgeler/$(ls /srv/http/komser/static/simgeler/${_paket}_* | head -n1 | xargs -I {} basename {})" + icerik+="" + done + icerik+="
$_paket
" + echo "$icerik" > /tmp/test.html +} + yeniden_paketle(){ cd $1 bsdtar -r -f ../"$1".mps .META @@ -2759,6 +2774,9 @@ ayarlar() { exit 1 fi exit 0 ;; + phtml) + paketler_depo_html + exit 0 ;; ### mps bilgi paketismi = ilgili paketin talimat ve kurulum bilgilerini verir. bilgi) paket_bilgi "$2"