mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
leming's new pkgverchecker, much better
This commit is contained in:
parent
cdb8f66f08
commit
a7a6325ee9
1 changed files with 18 additions and 14 deletions
|
@ -9,20 +9,24 @@ REPODIR=/build/packages
|
|||
|
||||
cd $ABSDIR/$1
|
||||
|
||||
echo "<h3>" ; echo $1 ; echo "</h3>"
|
||||
echo ""
|
||||
if [[ ! $* ]]; then
|
||||
echo "usage: $0 <repository>"
|
||||
exit 1
|
||||
fi
|
||||
echo "$1"
|
||||
echo ""
|
||||
|
||||
cd $REPODIR/$1
|
||||
|
||||
for i in `find . -maxdepth 1 -mindepth 1 -type d|sort`; do
|
||||
cd $ABSDIR/$1/$i > /dev/null 2>&1
|
||||
echo "<b>"
|
||||
grep pkgname= PKGBUILD | sed -e 's/pkgname=//'
|
||||
echo "</b>"
|
||||
grep pkgver= PKGBUILD | sed -e 's/pkgver=//'
|
||||
grep pkgrel= PKGBUILD | sed -e 's/pkgrel=/-/'
|
||||
echo "</br>"
|
||||
echo ""
|
||||
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
|
||||
done
|
||||
|
||||
echo "<br /><br /><h2>In Repository</h2>"
|
||||
cd $REPODIR/$1
|
||||
ls | sed 's#.pkg.tar.xz#<br />#' | sed '#s#.pkg.tar.gz#<br />#' | sed 's#core.db.tar.gz##' | sed 's#extra.db.tar.gz##' | sed 's#community.db.tar.gz##'
|
||||
|
|
Loading…
Reference in a new issue