On 04/ 6/10 08:02 PM, Robert Milkowski wrote:
Hi,
I noticed that below command takes long time:
mi...@r600:~# truss -v all -o /tmp/a pkg list -af
pkg://opensolaris.org/[email protected],5.11-0.134:20100302T023003Z
NAME (PUBLISHER) VERSION STATE UFOXI
entire 0.5.11-0.134 installed -----
Errors were encountered while attempting to retrieve package or file
data for
the requested operation.
Details follow:
http protocol error: code: 404 reason: Not Found
URL:
'http://pkg.opensolaris.org/contrib/manifest/0/[email protected]%2c5.11-0.111%3a20090804t151953z'.
(happened 4 times)
mi...@r600:~#
mi...@r600:~$ grep ^send /tmp/a
send(4, " G E T / c o n t r i b".., 197, 0) = 197
send(4, " G E T / c o n t r i b".., 280, 0) = 280
send(4, " G E T / c o n t r i b".., 280, 0) = 280
send(4, " G E T / c o n t r i b".., 280, 0) = 280
send(4, " G E T / c o n t r i b".., 280, 0) = 280
mi...@r600:~$
Why is it querying /contrib?
Two reasons:
1) Contrib is a v0 repository, so it has to retrieve manifest data to
process contrib entries during pkg list. (Newer repositories that are
v1 provide all the data pkg list needs in the catalog.)
2) When you use patterns, pkg list performs the filtering as it is
retrieving each entry. While it could possibly try to optimise its
access based on the patterns you provide, an explicit publisher option
is preferable which is why this bug exists:
http://defect.opensolaris.org/bz/show_bug.cgi?id=14179
Cheers,
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss