Bugzilla – Bug 831
pkg ignores repository path
Last modified: 2008-03-20 14:52:28 UTC
You need to log in before you can comment on or make changes to this bug.
Created an attachment (id=130) [details] fixes uri construction so path is preserved If the repository content is anywhere other than "/" in the server root, pkg doesn't work properly. As an example, take repository: http://pkg.opensolaris.org/webstack/ After creating an image using it, # pkg image-create -F -a webstack=http://pkg.opensolaris.org/webstack/ / if one attempts to 'pkg install' something, pkg drops the "/webstack" part when issuing requests to the server, so nothing matches. I found that the info is being lost in modules/misc.py while constructing the uri. The attached patch constructs the uri preserving the full path. Note: I don't really speak python so this may or may not be the right way. I just copied style seen elsewhere in the file. With this patch, pkg can now install packages off http://pkg.opensolaris.org/webstack/
Dup of bug 767. *** This bug has been marked as a duplicate of bug 767 ***