diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2005-05-24 20:56:47 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2005-05-24 20:56:47 +0000 |
commit | 2d0657da0e3ce27d8432c877f9d9922856693afc (patch) | |
tree | f7a23f35fb298f27872c20befc5b49420d118725 /mk/scripts | |
parent | 8512f22e6052e58f9c3ea637cae3d6dd94d2dd07 (diff) | |
download | pkgsrc-2d0657da0e3ce27d8432c877f9d9922856693afc.tar.gz |
improve the message when an invalid cache file version is found
Diffstat (limited to 'mk/scripts')
-rwxr-xr-x | mk/scripts/binpkg-cache | 6 |
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 |