• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Installation Manager Tool


Commit MetaInfo

Revision97057678e3cb756e87271e0b0849ee17a172a712 (tree)
Time2012-04-26 07:55:00
AuthorKeith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Interim work-around for MinGW-Bug #3520864.

Change Summary

Incremental Difference

--- a/ChangeLog
+++ b/ChangeLog
@@ -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+
114 2012-04-23 Keith Marshall <keithmarshall@users.sourceforge.net>
215
316 Fix MinGW-Bug #3520488
--- a/src/pkgdeps.cpp
+++ b/src/pkgdeps.cpp
@@ -484,8 +484,9 @@ pkgXmlDocument::ResolveDependencies( pkgXmlNode* package, pkgActionItem* rank )
484484 * we are performing a removal).
485485 */
486486 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 )
489490 )
490491 );
491492 rank = Schedule( promote( request, ACTION_INSTALL ), wanted, rank );
--- a/src/pkgexec.cpp
+++ b/src/pkgexec.cpp
@@ -376,7 +376,13 @@ pkgActionItem* pkgXmlDocument::Schedule
376376 * we update the already scheduled request to reflect this...
377377 */
378378 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
380386 return prior;
381387 }
382388 /* ...otherwise, when this request produces a valid package reference,
@@ -385,6 +391,12 @@ pkgActionItem* pkgXmlDocument::Schedule
385391 else if( ((ref = ref->Schedule( action, item )) != NULL)
386392 && ((ref->Selection() != NULL) || (ref->Selection( to_remove ) != NULL)) )
387393 {
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
388400 /* ...and, when successfully raised, add it to the task list...
389401 */
390402 if( rank )