The MinGW.org Installation Manager Tool
Revision | 97057678e3cb756e87271e0b0849ee17a172a712 (tree) |
---|---|
Time | 2012-04-26 07:55:00 |
Author | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Interim work-around for MinGW-Bug #3520864.
@@ -1,3 +1,16 @@ | ||
1 | +2012-04-25 Keith Marshall <keithmarshall@users.sourceforge.net> | |
2 | + | |
3 | + Interim work-around for MinGW-Bug #3520864. | |
4 | + | |
5 | + * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies): | |
6 | + [DEBUG_TRACE_DEPENDENCIES]: Add request flags to messages reporting | |
7 | + the scheduling of installation activities. | |
8 | + | |
9 | + * src/pkgexec.cpp (pkgXmlDocument::Schedule): Add temporary diagnostic | |
10 | + hooks to confirm request flags; bracket them with #if 0 ... #endif. | |
11 | + [ACTION_PRIMARY && pre-scheduled request]: Don't trash request flags | |
12 | + when updating the pre-existing action item data. | |
13 | + | |
1 | 14 | 2012-04-23 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 15 | |
3 | 16 | Fix MinGW-Bug #3520488 |
@@ -484,8 +484,9 @@ pkgXmlDocument::ResolveDependencies( pkgXmlNode* package, pkgActionItem* rank ) | ||
484 | 484 | * we are performing a removal). |
485 | 485 | */ |
486 | 486 | DEBUG_INVOKE_IF( DEBUG_REQUEST( DEBUG_TRACE_DEPENDENCIES ), |
487 | - dmh_printf( "%*s%s: schedule installation\n", indent + 2, "", | |
488 | - selected->GetPropVal( tarname_key, value_unknown ) | |
487 | + dmh_printf( "%*s%s: schedule installation (flags=0x%08x)\n", | |
488 | + indent + 2, "", selected->GetPropVal( tarname_key, value_unknown ), | |
489 | + promote( request, ACTION_INSTALL ) | |
489 | 490 | ) |
490 | 491 | ); |
491 | 492 | rank = Schedule( promote( request, ACTION_INSTALL ), wanted, rank ); |
@@ -376,7 +376,13 @@ pkgActionItem* pkgXmlDocument::Schedule | ||
376 | 376 | * we update the already scheduled request to reflect this... |
377 | 377 | */ |
378 | 378 | if( (action & ACTION_PRIMARY) == ACTION_PRIMARY ) |
379 | - prior->SetPrimary( rank = ref->Schedule( action & ACTION_MASK, item ) ); | |
379 | + prior->SetPrimary( rank = ref->Schedule( action /* & ACTION_MASK */, item ) ); | |
380 | +# if 0 | |
381 | + dmh_printf( "Schedule(0x%08x):%s(prior)\n", | |
382 | + prior->HasAttribute((unsigned long)(-1)), | |
383 | + prior->Selection()->ArchiveName() | |
384 | + ); | |
385 | +# endif | |
380 | 386 | return prior; |
381 | 387 | } |
382 | 388 | /* ...otherwise, when this request produces a valid package reference, |
@@ -385,6 +391,12 @@ pkgActionItem* pkgXmlDocument::Schedule | ||
385 | 391 | else if( ((ref = ref->Schedule( action, item )) != NULL) |
386 | 392 | && ((ref->Selection() != NULL) || (ref->Selection( to_remove ) != NULL)) ) |
387 | 393 | { |
394 | +# if 0 | |
395 | + dmh_printf( "Schedule(0x%08x):%s(new)\n", | |
396 | + ref->HasAttribute((unsigned long)(-1)), | |
397 | + ref->Selection()->ArchiveName() | |
398 | + ); | |
399 | +# endif | |
388 | 400 | /* ...and, when successfully raised, add it to the task list... |
389 | 401 | */ |
390 | 402 | if( rank ) |