mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-27 09:58:34 +01:00
Isn't really needed a full rebuild of install.log file at every
update process! Launch /usr/libexec/slackpkg/makeinstlog.sh manually to create it.
This commit is contained in:
parent
6343da195e
commit
b60e8adf1f
1 changed files with 2 additions and 17 deletions
|
@ -47,27 +47,12 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
||||||
mkdir -p "$WORKDIR"
|
mkdir -p "$WORKDIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CMD" == "update" ];then
|
if [ ! -e $WORKDIR/install.log ];then
|
||||||
touch $TMPDIR/info.log
|
touch $WORKDIR/install.log
|
||||||
if [ $VERBOSE -gt 1 ];then
|
|
||||||
/usr/libexec/slackpkg/makeinstlog.sh -t >> $TMPDIR/info.log &
|
|
||||||
else
|
|
||||||
/usr/libexec/slackpkg/makeinstlog.sh >/dev/null &
|
|
||||||
fi
|
|
||||||
PIDINSTLOG=$!
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
function cleanup(){
|
function cleanup(){
|
||||||
[ "$SPINNING" = "off" ] || tput cnorm
|
[ "$SPINNING" = "off" ] || tput cnorm
|
||||||
if [ "$CMD" == "update" ];then
|
|
||||||
if [ $VERBOSE -gt 2 ];then
|
|
||||||
echo "Updating $WORKDIR/install.log..."
|
|
||||||
else
|
|
||||||
echo "Updating install.log"
|
|
||||||
fi
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
if [ "$DELALL" = "on" ] && [ "$NAMEPKG" != "" ]; then
|
if [ "$DELALL" = "on" ] && [ "$NAMEPKG" != "" ]; then
|
||||||
rm $CACHEPATH/$NAMEPKG &>/dev/null
|
rm $CACHEPATH/$NAMEPKG &>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue