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"
|
||||
fi
|
||||
|
||||
if [ "$CMD" == "update" ];then
|
||||
touch $TMPDIR/info.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=$!
|
||||
if [ ! -e $WORKDIR/install.log ];then
|
||||
touch $WORKDIR/install.log
|
||||
fi
|
||||
|
||||
|
||||
function cleanup(){
|
||||
[ "$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
|
||||
rm $CACHEPATH/$NAMEPKG &>/dev/null
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue