Re: dependencies and applications
| From: | Alexander Merz | Date: | Thu, 21 Aug 2003 18:35:59 +0000 |
| Subject: | Re: dependencies and applications | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20328@lists.php.net to get a copy of this message | ||
Greg Beaver wrote:
They will first attempt to use the HTML_TreeMenu out of the box, which won't work because the images are not found - but no error message is displayed, so they will end up thinking "well, this doesn't work at all" and abandon it, unless they know to look in the data directory, which is probably hidden away as a subdirectory of the pear/ directory buried in the /usr hierarchy...Ok, you agree with an pear-app which installs an application package which includes an application.xml instead of an package.xml. In this apllication.xml you woul have an entry like this: <packages> <package type="req"> <pkgname>HTML_TreeMenu</pkgname> <pkgversion>1.0</pkgversion> </package> ... You also agreed to my FileroleHandler-Class. So we can write an Filerole-Class for pear-app which reads the <fileroles>-section from application.xml: <fileroles> <filerole> <rolename>publicweb</rolename> <roledoc> dir for public files</roledoc> <basedir>@publicweb@</basedir> <filerole> <rolename>data</rolename> <roledoc>package related data files</roledoc> <basedir>@publicweb@/data</basedir> </filerole> ... @yxz@ in base dir means, check if the variable xyz is defined, else ask the user for the value while installing. pear-app would now try to install the package taking care of the new dir settings. If a pkg is already installed it, has to reinstall only the files with changed filerole destinations.