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

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

Reply via email to