[29023] users/rhwood/MacPorts.Framework/MPMacPorts.m

source_changes at macosforge.org source_changes at macosforge.org
Thu Sep 13 02:56:43 PDT 2007


Revision: 29023
          http://trac.macosforge.org/projects/macports/changeset/29023
Author:   rhwood at macports.org
Date:     2007-09-13 02:56:42 -0700 (Thu, 13 Sep 2007)

Log Message:
-----------
Make search method return an array of Port names instead of a string.

Modified Paths:
--------------
    users/rhwood/MacPorts.Framework/MPMacPorts.m

Modified: users/rhwood/MacPorts.Framework/MPMacPorts.m
===================================================================
--- users/rhwood/MacPorts.Framework/MPMacPorts.m	2007-09-13 09:45:17 UTC (rev 29022)
+++ users/rhwood/MacPorts.Framework/MPMacPorts.m	2007-09-13 09:56:42 UTC (rev 29023)
@@ -25,11 +25,11 @@
 }
 
 - (NSArray *)search:(NSString *)query {
-	return [interpreter evaluateArrayAsString:[NSArray arrayWithObjects:
+	return [[interpreter evaluateArrayAsString:[NSArray arrayWithObjects:
 		@"set r {}; set res [mportsearch",
 		query,
 		@"]; foreach {name info} $res { set r [concat $r $name] }; return $r",
-		nil]];
+		nil]] componentsSeparatedByString:@" "];
 }
 
 #pragma settings

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


More information about the macports-changes mailing list