Mike Gerdts wrote:
Andrzej Szeszo has posted a script that seems to address all of these
issues. Is there a reason that this approach is bad?
http://aszeszo.blogspot.com/2009/07/ips-repository-mirror-script_27.html
It seems to me that the following (adapted from an example in --help)
would put just a little more stress on the opensolaris.org/dev repo
than "pkg install redistributable" from a fresh install.
So, there are several things about this program that aren't quite right:
* doesn't use pkg client api, so "latest" version determination isn't
reliable; also makes assumptions about package version which means this
will only work for /dev and /release, and may not at some future point
* doesn't use a modern transport api, so won't download manifests or
catalog data using compressed transport (which means it will be slower
than the actual pkg(1) client)
* is using /catalog/0/, which means it won't be able to handle certain
repository configurations (multi-publisher content)
* is using old repository directory structure, which also just recently
changed (though this will still work with the new depot server)
* will only scale very well to a single build; can't imagine using it to
maintain a full /dev mirror
* assumes a certain structure for the repository and may break at some
future point
You should also be aware that the depot software and client currently
assume that all files declared in a package manifest exist in the
repository. While it shouldn't cause any problems at the moment to only
have SPARC or i386 data in your repository, it is not officially supported.
However, from a strictly "does it harm the package server" standpoint,
not really. Although again, the package servers are not currently
provisioned for mirroring using mechanisms other than rsync, and we
continue to request that you pull at 2AM your local time.
Work continues to improve the performance of the existing mirroring
options and to provide additional ones.
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss