Cyril,

This script republishes packages rather than copying them. Republishing means that each package gets a new timestamp in the FMRI. If you try to take a 2008.05 installed system and point it at a mirror created in this way, the packaging system will be unable to find any of the packages that it already has installed in the mirror because they will not exist. For example,

pkg:/[EMAIL PROTECTED],5.11-0.86:20080426T180125Z

is already in the pkg.opensolaris.org repository. When this script runs, you end up with something like this in the new repository:

pkg:/[EMAIL PROTECTED],5.11-0.86:20080520T120410Z

A "pkg image-update" would need to download all of the manifests in order to get things synced up.

The reason for this is that "pkgsend open", even with a complete FMRI, still chooses a new timestamp.

Tom


Cyril Plisko wrote:
Hi,

I recently needed a local mirror of pkg.opensolaris.org for some
off-line demo. So I check the new pkgrecv utility - it appears to be a
nice building block. I quickly hacked a pkgsync script (attached)
around pkgrecv/pkgsend pair to mirror the upstream repository into a
local one. Comments are welcome.


------------------------------------------------------------------------

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

begin:vcard
fn:Tom Mueller
n:Mueller;Tom
org:Sun Microsystems, Inc.;Update Center/OpenInstaller Software
adr:;;21915 Hillandale Dr;Elkhorn;NE;68022;USA
email;internet:[EMAIL PROTECTED]
title:Senior Staff Engineer
tel;work:877-250-4011
tel;fax:877-250-4011
tel;home:402-916-9943
x-mozilla-html:TRUE
version:2.1
end:vcard

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

Reply via email to