diff options
author | dmcmahill <dmcmahill> | 2005-05-24 20:56:47 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill> | 2005-05-24 20:56:47 +0000 |
commit | 53782f7681ff7287c776ab620f6179119bbd1499 (patch) | |
tree | f7a23f35fb298f27872c20befc5b49420d118725 /mk/scripts | |
parent | 574544cfe3242c0fcc22983659cddf8a85293c80 (diff) | |
download | pkgsrc-53782f7681ff7287c776ab620f6179119bbd1499.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 |