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