• 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

Revisión18469af41a2ad6ce1259fd60501476d8d38ad2dc (tree)
Tiempo2013-01-09 20:12:03
AutorKeith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Include release tags in GUI displayed package versions.

Cambiar Resumen

Diferencia incremental

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
1+2013-01-09 Keith Marshall <keithmarshall@users.sourceforge.net>
2+
3+ Include release tags in GUI displayed package versions.
4+
5+ * src/pkglist.cpp (pkgVersionString) [ReleaseStatus != NULL]:
6+ Append ReleaseStatus and ReleaseIndex to generated version string.
7+
18 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
29
310 Fix enumeration of pending install actions for scheduled upgrades.
--- a/src/pkglist.cpp
+++ b/src/pkglist.cpp
@@ -209,16 +209,30 @@ static char *pkgVersionString( char *buf, pkgSpecs *pkg )
209209 * We begin with the concatenation of package version and build ID
210210 * fields, retrieved from the pkgSpecs representation...
211211 */
212+ const char *pkg_version_tag;
212213 char *update = version_string_copy( buf, pkg->GetPackageVersion() );
213214 update = version_string_copy( update, pkg->GetPackageBuild(), '-' );
214- if( pkg->GetSubSystemVersion() != NULL )
215+ if( (pkg_version_tag = pkg->GetSubSystemVersion()) != NULL )
215216 {
216- /* ...then, we append the sub-system ID, if applicable...
217+ /* ...then, we append the sub-system ID, if applicable.
217218 */
218219 update = version_string_copy( update, pkg->GetSubSystemName(), '-' );
219- update = version_string_copy( update, pkg->GetSubSystemVersion(), '-' );
220+ update = version_string_copy( update, pkg_version_tag, '-' );
220221 update = version_string_copy( update, pkg->GetSubSystemBuild(), '-' );
221222 }
223+ if( (pkg_version_tag = pkg->GetReleaseStatus()) != NULL )
224+ {
225+ /* When the package name also includes a release classification,
226+ * then we also append this to the displayed version number (noting
227+ * that an initial '$' is special, and should be suppressed)...
228+ */
229+ if( *pkg_version_tag == '$' ) ++pkg_version_tag;
230+ update = version_string_copy( update, pkg_version_tag, '-' );
231+ /*
232+ * ...followed by any serialisation index for the release...
233+ */
234+ update = version_string_copy( update, pkg->GetReleaseIndex(), '-' );
235+ }
222236 /* ...and finally, we return a pointer to the buffer in which
223237 * we constructed the fully qualified version string.
224238 */