2010-10-07 16:17:09 +00:00
|
|
|
# This is a simple package version checker (for now)
|
|
|
|
#
|
|
|
|
# So far it only lists the names and versions of packages in ABS.
|
|
|
|
# Planned is to grab repository pkgvers, then ABS vers, and only
|
|
|
|
# output the differences, i.e. what packages need to be upgraded.
|
|
|
|
|
|
|
|
ABSDIR=/build/abs
|
2010-10-28 09:12:05 +00:00
|
|
|
GITDIR=/build/plugapps
|
2010-10-07 16:17:09 +00:00
|
|
|
|
2010-10-27 07:51:39 +00:00
|
|
|
if [[ ! $* ]]; then
|
|
|
|
echo "usage: $0 <repository>"
|
|
|
|
exit 1
|
|
|
|
fi
|
2010-10-28 00:16:50 +00:00
|
|
|
echo "$1"
|
2010-10-28 09:12:05 +00:00
|
|
|
|
|
|
|
cd $GITDIR/$1
|
2010-10-07 19:53:13 +00:00
|
|
|
|
2010-10-07 21:49:21 +00:00
|
|
|
for i in `find . -maxdepth 1 -mindepth 1 -type d|sort`; do
|
2010-10-27 07:51:39 +00:00
|
|
|
PKGNAME=`grep ^pkgname= $i/PKGBUILD | sed -e 's/pkgname=//'`
|
|
|
|
PKGVER=`grep ^pkgver= $i/PKGBUILD | sed -e 's/pkgver=//'`
|
|
|
|
PKGREL=`grep ^pkgrel= $i/PKGBUILD | sed -e 's/pkgrel=/-/'`
|
|
|
|
if [[ -e $ABSDIR/$1/$i ]]; then
|
|
|
|
ABSVER=`grep ^pkgver= $ABSDIR/$1/$i/PKGBUILD | sed -e 's/pkgver=//'`
|
|
|
|
ABSREL=`grep ^pkgrel= $ABSDIR/$1/$i/PKGBUILD | sed -e 's/pkgrel=/-/'`
|
|
|
|
if [[ "$ABSVER$ABSREL" != "$PKGVER$PKGREL" ]]; then
|
|
|
|
echo "$PKGNAME $PKGVER$PKGREL -> $ABSVER$ABSREL"
|
|
|
|
fi
|
|
|
|
fi
|
2010-10-07 16:17:09 +00:00
|
|
|
done
|