Bug 831 - pkg ignores repository path
: pkg ignores repository path
Status: CLOSED DUPLICATE of bug 767
Product: pkg
cli
: unspecified
: ANY/Generic OpenSolaris
: P3 normal (vote)
: ---
Assigned To: pkg/cli watcher
: pkg/cli watcher
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-03-20 14:38 UTC by jyri.virkki
Modified: 2008-03-20 14:52 UTC (History)
0 users (show)

See Also:


Attachments
fixes uri construction so path is preserved (859 bytes, patch)
2008-03-20 14:38 UTC, jyri.virkki
no flags Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description jyri.virkki 2008-03-20 14:38:14 UTC
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/
Comment 1 Danek Duvall 2008-03-20 14:52:28 UTC
Dup of bug 767.

*** This bug has been marked as a duplicate of bug 767 ***