mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-26 09:58:43 +01:00
Fixed Download only
This commit is contained in:
parent
6f459f145b
commit
d3bd352f01
1 changed files with 13 additions and 9 deletions
|
@ -230,6 +230,17 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
handle_event "remove"
|
||||
} # END function remove_pkg()
|
||||
|
||||
if [ "$DOWNLOADONLY" == "on" ];then
|
||||
function installpkg() {
|
||||
echo " Download only.. `basename $1` not installed!"
|
||||
DELALL=off
|
||||
}
|
||||
function upgradepkg() {
|
||||
echo " Download only.. `basename $1` not upgraded!"
|
||||
DELALL=off
|
||||
}
|
||||
fi
|
||||
|
||||
# Overrides original upgrade_pkg(). Required by the notification mechanism.
|
||||
function upgrade_pkg() {
|
||||
local i
|
||||
|
@ -242,10 +253,6 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
done
|
||||
DELALL="$OLDDEL"
|
||||
fi
|
||||
if [ "$DOWNLOADONLY" == "on" ];then
|
||||
echo "Download only.. not upgraded!"
|
||||
return
|
||||
fi
|
||||
ls -1 $ROOT/var/log/packages > $TMPDIR/tmplist
|
||||
|
||||
for i in $SHOWLIST; do
|
||||
|
@ -272,10 +279,6 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
done
|
||||
DELALL="$OLDDEL"
|
||||
fi
|
||||
if [ "$DOWNLOADONLY" == "on" ];then
|
||||
echo "Download only.. not installed!"
|
||||
return
|
||||
fi
|
||||
for i in $SHOWLIST; do
|
||||
INSTALL_T='installed: '
|
||||
if [ -e $ROOT/var/log/packages/$(echo $i|sed 's/\.t.z//') ];then
|
||||
|
@ -630,7 +633,6 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
|
||||
if [ "$STRICTGPG" != "off" ];then
|
||||
if [ ! -z "$REPO" ] && [ -e "${WORKDIR}/gpg/GPG-KEY-${REPO}.gpg" ] ; then
|
||||
echo "Using GPG-KEY-${REPO}.gpg" >&2
|
||||
gpg --no-default-keyring \
|
||||
--keyring ${WORKDIR}/gpg/GPG-KEY-${REPO}.gpg \
|
||||
--verify ${1}.asc ${1} 2>/dev/null && echo "1" || echo "0"
|
||||
|
@ -1093,6 +1095,8 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
cleanup
|
||||
;;
|
||||
esac
|
||||
echo
|
||||
echo
|
||||
SHOWLIST=$(cat $TMPDIR/dialog.out | tr -d \")
|
||||
if [ -z "$SHOWLIST" ]; then
|
||||
echo "No packages selected for $2, exiting."
|
||||
|
|
Loading…
Reference in a new issue