#!/bin/bash
#
# alternative script for update-notifier for Vine Linux.
#
# run apt-get update with --simulate via lua script and check packages  
# that to be upgraded, then print the number of package.
# format is like this ("%s;%s" % (upgrades,security_updates))
# * security_updates is alyaws 0 for Vine Linux.

UPGRADE=`LANG=C apt-get script --simulate /usr/lib/update-notifier/markupgrade.lua | grep upgraded, | cut -f1 -d" "`

echo $UPGRADE";0" 1>&2
