[35135] trunk/www/ports.php

jmpp at macports.org jmpp at macports.org
Mon Mar 17 21:21:01 PDT 2008


Revision: 35135
          http://trac.macosforge.org/projects/macports/changeset/35135
Author:   jmpp at macports.org
Date:     2008-03-17 21:21:01 -0700 (Mon, 17 Mar 2008)

Log Message:
-----------

Change the $by value of the dependency search back to 'library', as using 'dependency' broke clicking on a port's dependency's href
and getting that sole port as a search result (I missed updating the relevant stuff there for things to work); the entire 4500+ ports list
would be returned instead!

Also comment out searching by dependency for the time being, as the functionality is not exactly what I thought: searching for a dependency simply
returns a page for the port name, rather than the ports that depend on what as searched for (what I thought was the behavior). I'll code that behavior
later on and re-enable searching by dependency.

Modified Paths:
--------------
    trunk/www/ports.php

Modified: trunk/www/ports.php
===================================================================
--- trunk/www/ports.php	2008-03-18 03:51:36 UTC (rev 35134)
+++ trunk/www/ports.php	2008-03-18 04:21:01 UTC (rev 35135)
@@ -41,7 +41,7 @@
                 <option value="name"<?php if ($by == "name") { print " selected=\"selected\""; } ?>>Software Title</option>
                 <option value="category"<?php if ($by == "category") { print " selected=\"selected\""; } ?>>Category</option>
                 <option value="maintainer"<?php if ($by == "maintainer") { print " selected=\"selected\""; } ?>>Maintainer</option>
-                <option value="dependency"<?php if ($by == "dependency") { print " selected=\"selected\""; } ?>>Dependency</option>
+<!--                <option value="library"<?php if ($by == "dependency") { print " selected=\"selected\""; } ?>>Dependency</option> -->
                 <option value="variant"<?php if ($by == "variant") { print " selected=\"selected\""; } ?>>Variant</option>
                 <option value="platform"<?php if ($by == "platform") { print " selected=\"selected\""; } ?>>Platform</option>
             </select>
@@ -93,7 +93,7 @@
             $tables .= ", $portsdb_name.maintainers m";
             $query .= " AND m.portfile=p.name AND m.maintainer LIKE '%" . mysql_real_escape_string($substr) . "%'";
         }
-        if ($by == "dependency") {
+        if ($by == "library") {
             $query .= " AND p.name='" . mysql_real_escape_string($substr) . "'";
         }
         if ($by == "variant") {

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080317/05116450/attachment.html 


More information about the macports-changes mailing list