This commit is contained in:
milisarge 2017-06-28 15:18:39 +03:00
parent 9f1af11359
commit 4edc4d75c0
2 changed files with 4 additions and 8 deletions

View File

@ -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

View File

@ -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