• 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

Revisionb6cf428474c310b6315e862084c6c338cad6fee1 (tree)
Time2012-12-15 00:55:18
AuthorKeith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Implement some additional permanent debugging support.

Change Summary

Incremental Difference

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
11 2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
22
3+ Implement some additional permanent debugging support.
4+
5+ * src/pkgdeps.cpp (pkgXmlDocument::ResolveDependencies):
6+ [DEBUG_TRACE_DEPENDENCIES]: Enable DMH digest mode for messages.
7+
8+ * src/tarproc.cpp (pkgTarArchiveInstaller::ProcessDataStream):
9+ [DEBUG_TRACE_TRANSACTIONS]: Add logging of installed file path names.
10+
11+2012-12-14 Keith Marshall <keithmarshall@users.sourceforge.net>
12+
313 Insert a missing snprintf format effector.
414
515 * src/pkgnget.cpp (pkgDownloadMeterGUI::Update): Add omitted '%'
--- a/src/pkgdeps.cpp
+++ b/src/pkgdeps.cpp
@@ -281,6 +281,13 @@ pkgXmlDocument::ResolveDependencies( pkgXmlNode* package, pkgActionItem* rank )
281281
282282 while( package != NULL )
283283 {
284+ /* Collect any debugging messages, relating to this dependency,
285+ * into a single message digest.
286+ */
287+ DEBUG_INVOKE_IF( DEBUG_REQUEST( DEBUG_TRACE_DEPENDENCIES ),
288+ dmh_control( DMH_BEGIN_DIGEST )
289+ );
290+
284291 /* We have a valid XML entity, which may identify dependencies;
285292 * check if it includes any "requires" specification...
286293 */
@@ -527,6 +534,14 @@ pkgXmlDocument::ResolveDependencies( pkgXmlNode* package, pkgActionItem* rank )
527534 */
528535 dep = dep->FindNextAssociate( requires_key );
529536 }
537+
538+ /* Flush out any digest of debugging messages, which may
539+ * have been collected, in respect of this dependency.
540+ */
541+ DEBUG_INVOKE_IF( DEBUG_REQUEST( DEBUG_TRACE_DEPENDENCIES ),
542+ dmh_control( DMH_END_DIGEST )
543+ );
544+
530545 /* Also consider any dependencies which may be common to
531546 * all releases, or all components, of the current package;
532547 * we do this by walking back through the XML hierarchy,
--- a/src/tarproc.cpp
+++ b/src/tarproc.cpp
@@ -697,6 +697,17 @@ int pkgTarArchiveInstaller::ProcessDataStream( const char *pathname )
697697 */
698698 commit_saved_entity( pathname, octval( header.field.mtime ) );
699699 installed->AddEntry( filename_key, pathname + sysroot_len );
700+
701+ /* Additionally, when the appropriate level of debug
702+ * tracing has been enabled, report the installation of
703+ * this file to the diagnostic log.
704+ *
705+ * FIXME: this would be a good place to add reporting
706+ * of installation, in verbose execution mode.
707+ */
708+ DEBUG_INVOKE_IF( DEBUG_REQUEST( DEBUG_TRACE_TRANSACTIONS ),
709+ dmh_printf( " %s\n", pathname )
710+ );
700711 }
701712 return status;
702713 }