mpsd
This commit is contained in:
parent
9f1af11359
commit
4edc4d75c0
2
bin/mps
2
bin/mps
|
@ -124,8 +124,10 @@ paket_sil(){
|
|||
done
|
||||
fi
|
||||
if [ "$sil_onay" = "e" ];then
|
||||
[ -f "$talimatname_dizin/genel/$paket/$paket.kos-sil" ] && bash "$talimatname_dizin/genel/$paket/$paket.kos-sil"
|
||||
xargs rm -r -f < /tmp/$paket.sil &&
|
||||
rm -r -f /var/lib/pkg/DB/"$paket" &&
|
||||
[ -f "$talimatname_dizin/genel/$paket/$paket.sil-kos" ] && bash "$talimatname_dizin/genel/$paket/$paket.sil-kos"
|
||||
ryaz 34 $paket" paketi silindi."
|
||||
loglama "$paket paketi silindi."
|
||||
rm -f /tmp/$paket.sil
|
||||
|
|
10
bin/mpsd
10
bin/mpsd
|
@ -594,16 +594,10 @@ add_meta_files() {
|
|||
if [ -f $PKGMK_ROOT/${NAME}.kos-kur ]; then
|
||||
cp $PKGMK_ROOT/${NAME}.kos-kur .PRE
|
||||
fi
|
||||
if [ -f $PKGMK_ROOT/${NAME}.kos-sil ]; then
|
||||
cp $PKGMK_ROOT/${NAME}.kos-sil .PRES
|
||||
fi
|
||||
if [ -f $PKGMK_ROOT/${NAME}.kur-kos ]; then
|
||||
cp $PKGMK_ROOT/${NAME}.kur-kos .POST
|
||||
fi
|
||||
if [ -f $PKGMK_ROOT/${NAME}.sil-kos ]; then
|
||||
cp $PKGMK_ROOT/${NAME}.sil-kos .POSTS
|
||||
fi
|
||||
for file in .README .PRE .POST .PRES .POSTS; do
|
||||
for file in .README .PRE .POST; do
|
||||
if [ -f $file ]; then
|
||||
bsdtar -r -f $PAKETLEME_DIZIN/$1 \
|
||||
$file
|
||||
|
@ -691,7 +685,7 @@ add_meta_to_archive() {
|
|||
|
||||
rm $PAKETLEME_DIZIN/$1
|
||||
|
||||
for file in .META .MTREE .README .PRE .POST .PRES .POSTS .INFO; do
|
||||
for file in .META .MTREE .README .PRE .POST .INFO; do
|
||||
if [ -f $file ]; then
|
||||
bsdtar -r -f $PAKETLEME_DIZIN/$1 \
|
||||
$file
|
||||
|
|
Loading…
Reference in New Issue