[Lsb-messages] /var/www/bzr/lsb/devel/dbadmin r267: Support for deprecating constants (bug #3681)

Denis Silakov denis.silakov at rosalab.ru
Thu Oct 18 20:49:51 UTC 2012


------------------------------------------------------------
revno: 267
committer: Denis Silakov <denis.silakov at rosalab.ru>
branch nick: dbadmin
timestamp: Fri 2012-10-19 00:49:51 +0400
message:
  Support for deprecating constants (bug #3681)
modified:
  constant.inc
-------------- next part --------------
=== modified file 'constant.inc'
--- a/constant.inc	2012-09-10 17:07:47 +0000
+++ b/constant.inc	2012-10-18 20:49:51 +0000
@@ -422,7 +422,13 @@
                             WHERE ACappearedin > ''
                             AND ACcid=$Cid";
         $AppVer = Query_value($selectAppVer);
-        return "<font class='included'>Included since $AppVer</font>";
+        $depr = Query_value("SELECT Cdescription FROM Constant WHERE Cid=$Cid AND Cdescription LIKE '%DEPRECATED%'");
+        if( $depr ) {
+        	return "<font class='deprecated'>Included since $AppVer; deprecated</font>";
+				}
+				else {
+        	return "<font class='included'>Included since $AppVer</font>";
+				}
     }
     else {
         $selectWithdrawnVer = "SELECT MIN(ACwithdrawnin) FROM ArchConst



More information about the lsb-messages mailing list