Re: [Pkgutil-users] package map file
Status: Beta
Brought to you by:
bonivart
|
From: <ma...@pr...> - 2010-07-28 14:54:51
|
>>> For what you envision there are hooks which can provide the update >>> functionality even on package name change. >> >> I don't understand. What hooks do you mean? How would I use them >> to fix the dependency issue? Please explain further. > > See here: > http://wiki.opencsw.org/package-hooks > The upgrade script would look inside the installed and new package and > see if the update would be necessary and how it should be done. It could e.g. remove PKGa > and install PKGb as new version instead. Fundamentally I need to change the list of packages that pkgutil thinks it wants to install. If I can't change the catalogue format so that dependencies are associated with the correct package versions, then I have three options: 1) Break compatibility by branching off a new version of pkgutil for anyone who doesn't care about compatibility with pkg-get or Sunfreeware. 2) Introduce a new file that lives alongside the catalogue file that defines the correct version-specific dependencies. 3) Modify the prebatchinstall hook to allow an external hook script to modify the list of packages to install. Although the dependency list would still need to come from somewhere, so this is practically the same as 2). None of these options sound ideal to me. Any alternatives? Best regards, Mark. |