pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/scripts improve the message when an invalid cache f...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6cb6a29aec8a
branches: trunk
changeset: 494482:6cb6a29aec8a
user: dmcmahill <dmcmahill%pkgsrc.org@localhost>
date: Tue May 24 20:56:47 2005 +0000
description:
improve the message when an invalid cache file version is found
diffstat:
mk/scripts/binpkg-cache | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r b65d9424f316 -r 6cb6a29aec8a mk/scripts/binpkg-cache
--- a/mk/scripts/binpkg-cache Tue May 24 20:49:41 2005 +0000
+++ b/mk/scripts/binpkg-cache Tue May 24 20:56:47 2005 +0000
@@ -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 @@
${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
Home |
Main Index |
Thread Index |
Old Index