From c1efcc1204e73c7fe43007d3d4d3b65b173f657f Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 1 Oct 2007 23:08:29 -0500 Subject: 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 --- checkpkg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'checkpkg') diff --git a/checkpkg b/checkpkg index 63035ff..69046e8 100644 --- a/checkpkg +++ b/checkpkg @@ -19,12 +19,13 @@ oldstylepkgfile=${pkgname}-${pkgver}-${pkgrel}.pkg.tar.gz if [ ! -f $pkgfile ]; then if [ -f $PKGDEST/$pkgfile ]; then pkgfile=$PKGDEST/$pkgfile + oldstylepkgfile=$PKGDEST/$oldstylepkgfile elif [ -f $oldstylepkgfile ]; then pkgfile=$oldstylepkgfile elif [ -f $PKGDEST/$oldstylepkgfile ]; then pkgfile=$PKGDEST/$oldstylepkgfile else - echo "You must have a built package to check." + echo "File $pkgfile doesn't exist" exit 1 fi fi -- cgit v1.2.3-24-g4f1b