summaryrefslogtreecommitdiff
path: root/mk/scripts
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2005-05-24 20:56:47 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2005-05-24 20:56:47 +0000
commit2d0657da0e3ce27d8432c877f9d9922856693afc (patch)
treef7a23f35fb298f27872c20befc5b49420d118725 /mk/scripts
parent8512f22e6052e58f9c3ea637cae3d6dd94d2dd07 (diff)
downloadpkgsrc-2d0657da0e3ce27d8432c877f9d9922856693afc.tar.gz
improve the message when an invalid cache file version is found
Diffstat (limited to 'mk/scripts')
-rwxr-xr-xmk/scripts/binpkg-cache6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/scripts/binpkg-cache b/mk/scripts/binpkg-cache
index b52ff9ad586..d38a372dba0 100755
--- a/mk/scripts/binpkg-cache
+++ b/mk/scripts/binpkg-cache
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: binpkg-cache,v 1.4 2005/05/24 20:49:41 dmcmahill Exp $
+# $NetBSD: binpkg-cache,v 1.5 2005/05/24 20:56:47 dmcmahill Exp $
#
# Script for generating a cache file with information about
# all binary packages contained in a directory.
@@ -173,7 +173,9 @@ process_binpkg_dir(){
${GREP} "pkgcache_version ${cacheversion}" ${d}/${cachefile} >/dev/null 2>&1
if test $? -ne 0 ; then
need_update=yes
- echo "${tab}Old version cache file. ${d}/${cachefile} will be regenerated."
+ echo "${tab}Invalid version cache file. ${d}/${cachefile} will be regenerated."
+ echo "Need version ${cacheversion} but the file has"
+ ${GREP} "^pkgcache_version " ${d}/${cachefile}
else
echo "${tab}Cache file ${d}/${cachefile} is up to date."
fi