2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
+ Fix enumeration of pending install actions for scheduled upgrades.
+
+ * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions):
+ [action == ACTION_UPGRADE && classified == ACTION_INSTALL]: Enumerate
+ upgrade as a special case of the install classification.
+
+2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
+
Implement "Mark All Upgrades" GUI capability.
* src/guimain.h (IDM_REPO_APPLY): Renumbered; make room for...
* $Id$
*
* Written by Keith Marshall <keithmarshall@users.sourceforge.net>
- * Copyright (C) 2012, MinGW.org Project
+ * Copyright (C) 2012, 2013, MinGW.org Project
*
*
* Implementation of the classes and methods required to support the
int action;
if( (action = item->flags & ACTION_MASK) != 0 )
{
- /* ...and, when one is found...
+ /* ...and, when one is found, (noting that ACTION_UPGRADE may
+ * also be considered as a special case of ACTION_INSTALL)...
*/
- if( action == classified )
+ if( (action == classified)
+ || ((action == ACTION_UPGRADE) && (classified == ACTION_INSTALL)) )
{
/* ...and it matches the classification in which
* we are interested, then we retrieve the tarname