nested package dependencies

From: Date: Mon, 07 Feb 2005 16:12:03 +0000
Subject: nested package dependencies
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-36005@lists.php.net to get a copy of this message
Hello all, I was wondering about the ability to have nested package dependencies? For example, the Structures_DataGrid package offers HTML output with the usage of the HTML_Table package in conjunction with output from Pager. However, If the user opts to not use the HTML output (for example they want to output the grid in excel), they do not need these 2 packages and are therefor listed as optional in the package.xml file. However, if I do use the HTML output, I MUST have Pager installed. So instead of having this: <dep type="pkg" rel="ge" version="1.2" optional="no">PEAR</dep> <dep type="pkg" rel="ge" version="1.5" optional="yes">HTML_Table</dep> <dep type="pkg" rel="ge" version="2.2.5" optional="yes">Pager</dep> I would like to be able to do something like this: <dep type="pkg" rel="ge" version="1.2" optional="no">PEAR</dep> <dep type="pkg" rel="ge" version="1.5" optional="yes">HTML_Table <dep type="pkg" rel="ge" version="2.2.5" optional="no">Pager</dep> </dep> If their is no current way to do this, could we implement a new version of the package XML to support this syntax, or a cleaner syntax might be: <dep type="pkg" rel="ge" version="1.2" optional="no" title="PEAR" /> <dep type="pkg" rel="ge" version="1.5" optional="yes" title="HTML_Table"> <dep type="pkg" rel="ge" version="2.2.5" optional="no" title="Pager" /> </dep> Thanks for the help Andrew

« previous php.pear.dev (#36005) next »