[28932] users/rhwood/Pallet

source_changes at macosforge.org source_changes at macosforge.org
Wed Sep 12 02:19:15 PDT 2007


Revision: 28932
          http://trac.macosforge.org/projects/macports/changeset/28932
Author:   rhwood at macports.org
Date:     2007-09-12 02:19:14 -0700 (Wed, 12 Sep 2007)

Log Message:
-----------
Remove configurationSettings method since it was not really used and the MacPorts.framework could be better utilized to do the same tasks.

Modified Paths:
--------------
    users/rhwood/Pallet/PortAuthority.h
    users/rhwood/Pallet/PortAuthority.m

Modified: users/rhwood/Pallet/PortAuthority.h
===================================================================
--- users/rhwood/Pallet/PortAuthority.h	2007-09-12 09:14:19 UTC (rev 28931)
+++ users/rhwood/Pallet/PortAuthority.h	2007-09-12 09:19:14 UTC (rev 28932)
@@ -84,8 +84,6 @@
 - (IBAction)upgradePort:(id)sender;
 - (IBAction)haltPortCommand:(id)sender;
 
-- (NSString *)configurationSetting:(NSString *)setting;
-
 - (void)installSinglePort:(NSString *)name;
 - (void)runPortCommand:(NSString *)action port:(NSString *)port;
 - (void)runPortCommandInThread:(id)parameters;

Modified: users/rhwood/Pallet/PortAuthority.m
===================================================================
--- users/rhwood/Pallet/PortAuthority.m	2007-09-12 09:14:19 UTC (rev 28931)
+++ users/rhwood/Pallet/PortAuthority.m	2007-09-12 09:19:14 UTC (rev 28932)
@@ -81,7 +81,6 @@
 	[[portsList headerView] setMenu:portsListHeaderMenu];
 	[[portsList cornerView] setMenu:portsListHeaderMenu];
 	// TESTING TESTING TESTING
-	NSLog(@"Ports Database path: %@", [self configurationSetting:@"portdbpath"]);
 }
 
 /*
@@ -247,35 +246,6 @@
 	
 }
 
-#pragma mark PORT CONFIGURATION
-
-- (NSString *)configurationSetting:(NSString *)setting
-/*
- For some reason, the below script can not find {$prefix}/etc/ports/ports.conf
- So what we need to do is execute a tclsh resource script to get conf settings out of port
- 
- Better yet, create a RFE for port to dump its configuration settings so we can read all port conf files
- without knowing where the setting came from (default, ports.conf, .portrc, wherever)...
- */
-{
-	if ([portSettings valueForKey:setting] == nil) {
-		int tclResult;
-		Tcl_Interp *tcl;
-		NSString *script = [[NSString alloc] initWithFormat:@"source %@/etc/macports/macports.conf\nproc %@ x {puts [list %2$@ $x]}", [macPorts prefix], setting, nil];
-		NSLog(script);
-		tcl = Tcl_CreateInterp();
-		tclResult = Tcl_EvalEx(tcl, [script cString], -1, TCL_EVAL_GLOBAL);
-		if (tclResult == TCL_OK) {
-			NSLog(@"%s", Tcl_GetStringResult(tcl));
-			[portSettings setValue:[NSString stringWithCString:Tcl_GetStringResult(tcl)] forKey:setting];
-		} else {
-			NSLog(@"%s", Tcl_ErrnoMsg(Tcl_ErrnoId()));
-		}
-		Tcl_DeleteInterp(tcl);
-	}
-	return [portSettings valueForKey:setting];
-}
-
 #pragma mark PORT COMMANDS
 
 - (void)defaultAction:(id)items

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


More information about the macports-changes mailing list