I'm using pkgrecv and was wondering about the following.
Here's what works
----------------------
# pkg search -s http://fai-x4100m2-1:12000 CUSTOM
INDEX ACTION VALUE PACKAGE
basename dir var/tmp/Custom pkg:/[email protected]
basename dir var/tmp/Custom pkg:/[email protected]
# pkg info pkg:/[email protected]
Name: CUSTOM
Summary:
State: Installed
Authority: PAUL
Version: 2.0
Build Release: 5.11
Branch: 1
Packaging Date: Wed Mar 18 12:02:41 2009
Size: 4.59 kB
FMRI: pkg://PAUL/[email protected],5.11-1:20090318T120241Z
# pkgrecv -s http://fai-x4100m2-1:12000
pkg://PAUL/[email protected],5.11-1:20090318T120241Z
Here's what doesn't work
------------------------------
When I forget the full FMRI I get a nasty looking Python traceback
# pkgrecv -s http://fai-x4100m2-1:12000 CUSTOM
Traceback (most recent call last):
File "/usr/bin/pkgrecv", line 321, in ?
ret = main_func()
File "/usr/bin/pkgrecv", line 307, in main_func
mfstpath = fetch_manifest(server, fmri, basedir)
File "/usr/bin/pkgrecv", line 153, in fetch_manifest
error(_("Unable to download manifest %s from %s") %
File "/usr/lib/python2.4/vendor-packages/pkg/fmri.py", line 342, in
get_url_path
assert self.version != None
AssertionError
It's get better though when I at least put in a @ character.. This time
it catches the error.
# pkgrecv -s http://fai-x4100m2-1:12000 pkg:/[email protected]
pkgrecv: pkg:/[email protected] is an illegal fmri: Illegal FMRI
'pkg:/[email protected]': No build version provided in Version constructor:
(2.0-1, None)
Is this a bug?
Thanks,
Paul;
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss