MPActionsController now send the variants with the + prefix. Added a debug line on MPPort

git-svn-id: https://svn.macports.org/repository/macports/branches/gsoc10-gui@69798 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
Vasileios Georgitzikis
2010-07-16 19:51:14 +00:00
parent 0b63cc17c0
commit 0ad12407c4
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -261,11 +261,17 @@
vrnts = [NSString stringWithString:[variants componentsJoinedByString:@" "]];
}
NSLog(@"Variants String: %@", vrnts);
//Send Global Notifications and update MPNotifications variable
[self sendGlobalExecNotification:target withStatus:@"Started"];
//NSString * tclCmd = [@"YES_" stringByAppendingString:target];
[[MPNotifications sharedListener] setPerformingTclCommand:target];
NSLog(@"Interpreter string:\n%@",[NSString stringWithFormat:
@"set portHandle [mportopen %@ %@ %@]; mportexec $portHandle %@; mportclose $portHandle",
[self valueForKey:@"porturl"], opts, vrnts, target]);
[interpreter evaluateStringWithPossiblePrivileges:
[NSString stringWithFormat:
@"set portHandle [mportopen %@ %@ %@]; mportexec $portHandle %@; mportclose $portHandle",
+1 -1
View File
@@ -36,7 +36,7 @@
//NSLog(@"%@",[[port valueForKey:@"variants"] objectAtIndex:i]);
if ([checkboxes[i] state] == NSOnState)
{
[variants addObject:[[port valueForKey:@"variants"] objectAtIndex:i]];
[variants addObject:[NSString stringWithFormat:@"+%@", [[port valueForKey:@"variants"] objectAtIndex:i]]];
[variantsString appendString:@"+"];
[variantsString appendString:[[port valueForKey:@"variants"] objectAtIndex:i]];
}