On 01/05/12 09:19, Stephen Talley wrote:
Shawn Walker wrote:

On 01/05/12 07:21, Dave Miner wrote:
Steve, set up the local repo as a second origin:

pkg set-publisher -g<local repo>  solaris

Mirrors don't do what you want because they have only the file
content, not the catalog.

Unfortunately, that will no longer work.

pkg(5) now supports composition so treats each origin as a
potentially independent repository rather than alternative places to
retrieve identical content.

As a result, all origins for a publisher must be reachable.

There are long term plans to properly address this issue, but for
now, pkg(5) itself provides no mechanism to deal with this sort of
connectivity scenario.

The related bugs/RFEs are:

    13462 defer transport to offline and unreachable hosts
    http://defect.opensolaris.org/bz/show_bug.cgi?id=13462

    18320 implicit catalog refreshes shouldn't fail if publishers are
    unreachable
    http://defect.opensolaris.org/bz/show_bug.cgi?id=18320

    18323 installs and updates should be possible even when some
    sources / publishers are unreachable
    http://defect.opensolaris.org/bz/show_bug.cgi?id=18323

The only workaround I can think of for now is to setup a nwam
network profile and then have a script that changes the pkg
publisher configuration when the network profile is activated.

Shawn/Dave,

Thanks for the replies.  The hack I've been using is to point each
publisher to localhost:someport and then redirect that port to ipkg or
my local repo depending on what network I'm on.  The nwam script is
probably a bit prettier. :^)

Your solution may be easier to have work reliably though :-)

-Shawn

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to