The MinGW.OSDN Installation Manager Tool
Revision | 3ab7f88d863875a797680579d1de649cbc2219d1 (tree) |
---|---|
Time | 2013-01-09 01:34:53 |
Author | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Fix enumeration of pending install actions for scheduled upgrades.
@@ -1,5 +1,13 @@ | ||
1 | 1 | 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 2 | |
3 | + Fix enumeration of pending install actions for scheduled upgrades. | |
4 | + | |
5 | + * src/pkgdata.cpp (pkgActionItem::EnumeratePendingActions): | |
6 | + [action == ACTION_UPGRADE && classified == ACTION_INSTALL]: Enumerate | |
7 | + upgrade as a special case of the install classification. | |
8 | + | |
9 | +2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net> | |
10 | + | |
3 | 11 | Implement "Mark All Upgrades" GUI capability. |
4 | 12 | |
5 | 13 | * src/guimain.h (IDM_REPO_APPLY): Renumbered; make room for... |
@@ -4,7 +4,7 @@ | ||
4 | 4 | * $Id$ |
5 | 5 | * |
6 | 6 | * Written by Keith Marshall <keithmarshall@users.sourceforge.net> |
7 | - * Copyright (C) 2012, MinGW.org Project | |
7 | + * Copyright (C) 2012, 2013, MinGW.org Project | |
8 | 8 | * |
9 | 9 | * |
10 | 10 | * Implementation of the classes and methods required to support the |
@@ -1265,9 +1265,11 @@ unsigned long pkgActionItem::EnumeratePendingActions( int classified ) | ||
1265 | 1265 | int action; |
1266 | 1266 | if( (action = item->flags & ACTION_MASK) != 0 ) |
1267 | 1267 | { |
1268 | - /* ...and, when one is found... | |
1268 | + /* ...and, when one is found, (noting that ACTION_UPGRADE may | |
1269 | + * also be considered as a special case of ACTION_INSTALL)... | |
1269 | 1270 | */ |
1270 | - if( action == classified ) | |
1271 | + if( (action == classified) | |
1272 | + || ((action == ACTION_UPGRADE) && (classified == ACTION_INSTALL)) ) | |
1271 | 1273 | { |
1272 | 1274 | /* ...and it matches the classification in which |
1273 | 1275 | * we are interested, then we retrieve the tarname |