Sync package name checking for PKGDEST support
Not many changes here, most were already existing checkpkg should fully support PKGDEST Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
da6795515b
commit
c1efcc1204
3
checkpkg
3
checkpkg
|
@ -19,12 +19,13 @@ oldstylepkgfile=${pkgname}-${pkgver}-${pkgrel}.pkg.tar.gz
|
||||||
if [ ! -f $pkgfile ]; then
|
if [ ! -f $pkgfile ]; then
|
||||||
if [ -f $PKGDEST/$pkgfile ]; then
|
if [ -f $PKGDEST/$pkgfile ]; then
|
||||||
pkgfile=$PKGDEST/$pkgfile
|
pkgfile=$PKGDEST/$pkgfile
|
||||||
|
oldstylepkgfile=$PKGDEST/$oldstylepkgfile
|
||||||
elif [ -f $oldstylepkgfile ]; then
|
elif [ -f $oldstylepkgfile ]; then
|
||||||
pkgfile=$oldstylepkgfile
|
pkgfile=$oldstylepkgfile
|
||||||
elif [ -f $PKGDEST/$oldstylepkgfile ]; then
|
elif [ -f $PKGDEST/$oldstylepkgfile ]; then
|
||||||
pkgfile=$PKGDEST/$oldstylepkgfile
|
pkgfile=$PKGDEST/$oldstylepkgfile
|
||||||
else
|
else
|
||||||
echo "You must have a built package to check."
|
echo "File $pkgfile doesn't exist"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue