• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine 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

Revision6fdbd5bcaaf3f5c5c6ac0fdeac2a9635f00b0a4f (tree)
Zeit2011-06-13 04:38:11
AutorKeith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Don't require -vv to report progress of update operation.

Ändern Zusammenfassung

Diff

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
1+2011-06-12 Keith Marshall <keithmarshall@users.sourceforge.net>
2+
3+ Don't require -vv to report progress of update operation.
4+
5+ * src/pkgbind.cpp (pkgRepository::GetPackageList): Eliminate all
6+ basename() calls; `dname' already tells us what it should return.
7+ [update]: Report progress, irrespective of verbosity setting.
8+
19 2011-06-11 Keith Marshall <keithmarshall@users.sourceforge.net>
210
311 Fix MinGW-Bug #3313806.
--- a/src/pkgbind.cpp
+++ b/src/pkgbind.cpp
@@ -26,7 +26,6 @@
2626 */
2727 #include <stdio.h>
2828 #include <stdlib.h>
29-#include <libgen.h>
3029 #include <string.h>
3130 #include <unistd.h>
3231
@@ -78,11 +77,13 @@ void pkgRepository::GetPackageList( const char *dname )
7877 /* Check for a locally cached copy of the "package-list" file...
7978 */
8079 if( force_update || (access( dfile, F_OK ) != 0) )
81- /*
82- * When performing an "update", or if no local copy is available...
80+ {
81+ /* When performing an "update", or if no local copy is available...
8382 * Force a "sync", to fetch a copy from the public host.
8483 */
84+ dmh_printf( "Update catalogue: %s.xml\n", dname );
8585 owner->SyncRepository( dname, repository );
86+ }
8687
8788 /* We SHOULD now have a locally cached copy of the package-list;
8889 * attempt to merge it into the active profile database...
@@ -93,11 +94,8 @@ void pkgRepository::GetPackageList( const char *dname )
9394 /* We successfully loaded the XML catalogue; refer to its
9495 * root element...
9596 */
96- char catname[ 1 + strlen( merge.Value() ) ];
9797 if( pkgOptions()->Test( OPTION_VERBOSE ) > 1 )
98- dmh_printf(
99- "Load catalogue: %s\n", basename( strcpy( catname, merge.Value() ))
100- );
98+ dmh_printf( "Load catalogue: %s.xml\n", dname );
10199 pkgXmlNode *catalogue, *pkglist;
102100 if( (catalogue = merge.GetRoot()) != NULL )
103101 {
@@ -127,10 +125,7 @@ void pkgRepository::GetPackageList( const char *dname )
127125 { /* The specified catalogue could not be successfully loaded;
128126 * emit a warning diagnostic message, and otherwise ignore it.
129127 */
130- char catname[ 1 + strlen( dfile ) ];
131- dmh_notify( DMH_WARNING,
132- "Load catalogue: FAILED: %s\n", basename( strcpy( catname, dfile ))
133- );
128+ dmh_notify( DMH_WARNING, "Load catalogue: FAILED: %s.xml\n", dname );
134129 }
135130
136131 /* However we handled it, the XML file's path name in "dfile" was