On Wed, Mar 27, 2013 at 01:38:36PM -0500, William Giokas wrote:
Instead of just outputting a package name, print out the new pkgver (this is sometimes useful). Also, `pacman -Qu` does not check for new dependencies,
Changing this changes the point of the script. I don't care that Y packages will be installed, I care that X (which may or may not be equal to Y) packages have upgrades available.
whereas `pacman -Syup` will, and will print them with the other packages. It will also show the download progress for the databases instead of just seeming to hang there.
The point is that the resulting output is sane for parsing.
Signed-off-by: William Giokas <1007380@gmail.com> --- contrib/checkupdates.sh.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/contrib/checkupdates.sh.in b/contrib/checkupdates.sh.in index 15950e1..61f6093 100644 --- a/contrib/checkupdates.sh.in +++ b/contrib/checkupdates.sh.in @@ -36,8 +36,7 @@ eval $(awk -F' *= *' '$1 ~ /DBPath/ { print $1 "=" $2 }' /etc/pacman.conf)
mkdir -p "$CHECKUPDATE_DB" ln -s "${DBPath}/local" "$CHECKUPDATE_DB" &> /dev/null -fakeroot pacman -Sy --dbpath "$CHECKUPDATE_DB" &> /dev/null -pacman -Qqu --dbpath "$CHECKUPDATE_DB" 2> /dev/null +fakeroot pacman -Syup --print-format "%n-%v" --dbpath "$CHECKUPDATE_DB" 2> /dev/null
exit 0
-- 1.8.2.230.g2bba2f0