fix messaging for __package_update_index
The message was printed unconditionally, even if no `apt-get update` had been running.
This commit is contained in:
parent
c0dc26a577
commit
94c9d11cb8
1 changed files with 2 additions and 1 deletions
|
@ -54,11 +54,12 @@ case "$type" in
|
|||
## check if we need to update:
|
||||
if [ $currage -ge $maxage ]; then
|
||||
echo "apt-get --quiet update"
|
||||
echo "apt-cache updated (age was: $currage)" >> "$__messages_out"
|
||||
fi
|
||||
else
|
||||
echo "apt-get --quiet update"
|
||||
echo "apt-cache updated (age was: $currage)" >> "$__messages_out"
|
||||
fi
|
||||
echo "apt-cache updated (age was: $currage)" >> "$__messages_out"
|
||||
;;
|
||||
pacman) echo "pacman --noprogressbar --sync --refresh" ;;
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue