Bart Smaalders wrote:
While trying to help unbundled folks get into different repos,
it's become pretty clear that the following approach would make
life much simpler for everyone, since it gets all the different
repos to have unbundled pkgs w/ exactly the same timestamps:
1) publish unbundled pkgs (openoffice, studio, netbeans, etc)
into empty repo file:///...
2) cpio resulting pkg & file directories into different repo
structures w/ pkg/server disabled
and now the tricky part:
3) restart pkg/server and convince it to rebuild index & catalog
w/o causing everyone in the world to redownload the entire
catalog or run into other problems.
I know just blowing away catalog and index and restarting works,
but there are concerns about what happens to the update log.
What's the right way of doing this?
Currently, the updatelog is completely removed if the catalog is rebuilt
using the --rebuild option and so incremental updates can't be performed
for any point prior to that update. As such, currently, there is no
"right way" to do what you describe.
However, we could fix this:
Both the catalog and updatelog would need to be made smarter.
Currently, the updatelog doesn't support a '-' operation which is what
would be needed in case an entry was removed in the scenario you
described above. (We need that anyway for support of removing packages
from a catalog more formally.)
The catalog rebuild would also need to be made smarter so that after
building the new catalog, it would perform a comparison and append the
new entries to the end of the catalog while removing old entries.
It would then use the differences calculated during the catalog rebuild
to create new updatelog entries.
The above is a gross simplification, but those are the basics from what
I recall.
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss