Subject: Re: pkg/33456 (pkgtools/pkg_chk: pkg_chk -u: perfomance speedup)
To: None <abs@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,>
From: Auster <lrou@x.ua>
List: pkgsrc-bugs
Date: 05/10/2006 17:05:03
The following reply was made to PR pkg/33456; it has been noted by GNATS.
From: Auster <lrou@x.ua>
To: gnats-bugs@netbsd.org, abs@netbsd.org, pkg-manager@netbsd.org,
pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org, wiz@netbsd.org
Cc:
Subject: Re: pkg/33456 (pkgtools/pkg_chk: pkg_chk -u: perfomance speedup)
Date: Wed, 10 May 2006 17:44:58 +0300
On Wed, May 10, 2006 at 01:45:16PM +0000, wiz@netbsd.org wrote:
> Synopsis: pkgtools/pkg_chk: pkg_chk -u: perfomance speedup
>
> (I wonder why the -I run reports
> vim-share-7.0.0: missing
> vim-share-7.0.0: missing
> i.e. duplicate vim-share instead of once vim-share and one vim)
sorry, my typo:
--- /tmp/pkg_chk.test
+++ /tmp/pkg_chk.test2
@@ -141,7 +141,7 @@
fi
if [ -n "$USE_CACHED_VARS" ]; then # using cached vars
- pkg_vars=$(${GREP} "^$PKGDIR" "$INDEX_VARS" 2>/dev/null)
+ pkg_vars=$(${GREP} "^$PKGDIR|" "$INDEX_VARS" 2>/dev/null)
if [ -n "$pkg_vars" ]; then
args=$@
set --
# /tmp/pkg_chk -I
[ PASS1: check 561 installed packages at 17:10:33 ]
vim-7.0.0: version mismatch - vim-6.4.8
vim-share-7.0.0: version mismatch - vim-share-6.4.8nb1
[ PASS1: done at 17:15:36 ]
[ duration: 303 seconds ]
17:15 /usr/bin/env /usr/sbin/pkg_delete -K /var/db/pkg -r vim-6.4.8
17:15 /usr/bin/env /usr/sbin/pkg_delete -K /var/db/pkg -r vim-share-6.4.8nb1
[ Rechecking packages after deletions ]
[ PASS2: recheck 561 installed packages at 17:15:37 ]
[ using cached vars ]
vim-7.0.0: missing
vim-share-7.0.0: missing
[ PASS2: done at 17:15:42 ]
[ duration: 5 seconds ]
[ Install ]
...snip
17:20 rm -f /usr/pkgsrc/pkgchk_update-lrou.x.ua.conf
17:20 rm -f /usr/pkgsrc/INDEX.vars
Installed: vim-7.0.0 vim-share-7.0.0
p.s. i need some time for more accurate tests.