[Lsb-messages] /var/www/bzr/lsb/devel/dbadmin r283: Fix calculation of symbol status on interface home page

Denis Silakov denis.silakov at rosalab.ru
Tue Mar 12 13:21:04 UTC 2013


------------------------------------------------------------
revno: 283
committer: Denis Silakov <denis.silakov at rosalab.ru>
branch nick: dbadmin
timestamp: Tue 2013-03-12 17:21:04 +0400
message:
  Fix calculation of symbol status on interface home page
modified:
  int_single.inc
-------------- next part --------------
=== modified file 'int_single.inc'
--- a/int_single.inc	2013-02-28 14:19:56 +0000
+++ b/int_single.inc	2013-03-12 13:21:04 +0000
@@ -1680,9 +1680,9 @@
             print " from ".$rowModLib['Mname']." module (<a href=\"module.php?cmd=display_module&amp;module=".rawurlencode($rowModLib['SMname'])."\">".$rowModLib['SMname']."</a> submodule).<br/>\n" ;
         }
 
-	// If there are several ModSMod entries for the symbol
-	// (e.g., it was moved from one module to another)
-	// then choose the minimal SMmandatorysince value
+    // If there are several ModSMod entries for the symbol
+    // (e.g., it was moved from one module to another)
+    // then choose the minimal SMmandatorysince value
         $selectMndt = "SELECT MIN(SMmandatorysince) FROM LGInt
                         LEFT JOIN LibGroup ON LGid=LGIlibg
                         LEFT JOIN SModLib ON SMLlid=LGlib
@@ -2558,6 +2558,18 @@
         extract($row);
         $ISstatustext = str_replace(" ", "&nbsp;", $ISstatustext);
 
+        if( $ISstatus == "Included" ) {
+            // We can have several versions of the same symbol;
+            // ISstatustext will contain LSB version where the latest version was added,
+            // but we want information for the symbol in general
+            $selectGeneralAppearedVer = "SELECT MIN(AIappearedin) FROM ArchInt
+                                            JOIN Interface ON Iid=AIint
+                                            WHERE Iname='$Iname'
+                                            AND Ilibrary='$Ilibrary'";
+            $GeneralAppearedVer = Query_value($selectGeneralAppearedVer);
+            $ISstatustext = preg_replace( '/\d\.\d$/', "$GeneralAppearedVer", $ISstatustext);
+        }
+
         $selectSrcBin = "SELECT Isrcbin FROM Interface
                             WHERE Iname='$Iname'
                             AND Ilibrary='$Ilibrary' ";



More information about the lsb-messages mailing list