[Lsb-messages] /var/www/bzr/lsb/devel/dbadmin r284: Fix calculation of symbol status on interface search page
Denis Silakov
denis.silakov at rosalab.ru
Wed Mar 13 09:38:11 UTC 2013
------------------------------------------------------------
revno: 284
committer: Denis Silakov <denis.silakov at rosalab.ru>
branch nick: dbadmin
timestamp: Wed 2013-03-13 13:38:11 +0400
message:
Fix calculation of symbol status on interface search page
modified:
commons/search.inc
-------------- next part --------------
=== modified file 'commons/search.inc'
--- a/commons/search.inc 2012-09-10 17:07:47 +0000
+++ b/commons/search.inc 2013-03-13 09:38:11 +0000
@@ -310,6 +310,18 @@
$status = "<font class='never_been'>Never Been in $standard</font>";
}
else {
+ if( $rowStatus['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='".$row['Iname']."'
+ AND Ilibrary='".$row['Ilibrary']."'";
+ $GeneralAppearedVer = Query_value($selectGeneralAppearedVer);
+ $rowStatus['ISstatustext'] = preg_replace( '/\d\.\d$/', "$GeneralAppearedVer", $rowStatus['ISstatustext']);
+ }
+
$class = strtolower($rowStatus['ISstatus']);
$rowStatus['ISstatustext'] = str_replace(" ", " ", $rowStatus['ISstatustext']);
$status = "<font class='$class'>".$rowStatus['ISstatustext']."</font>";
More information about the lsb-messages
mailing list