Fix for apps showing post-install dependency failure even though they are not installed.

This commit is contained in:
Miles Lott 2005-10-08 14:54:01 +00:00
parent 10ab662e37
commit 09201c7ecb

View File

@ -188,7 +188,10 @@
/* Only set this if it has not already failed to upgrade - Milosch */ /* Only set this if it has not already failed to upgrade - Milosch */
if($setup_info[$key]['status'] != 'F')//&& $setup_info[$key]['status'] != 'C') if($setup_info[$key]['status'] != 'F')//&& $setup_info[$key]['status'] != 'C')
{ {
if($setup_info[$key]['status'] == 'C') /* Added check for status U - uninstalled apps carry this flag (upgrade from nothing == install).
* This should fix apps showing post-install dep failure when they are not yet installed.
*/
if($setup_info[$key]['status'] == 'C' || $setup_info[$key]['status'] == 'U')
{ {
$setup_info[$key]['status'] = 'D'; $setup_info[$key]['status'] = 'D';
} }