[30759] users/rhwood/MacPorts.Framework
source_changes at macosforge.org
source_changes at macosforge.org
Tue Nov 6 02:32:20 PST 2007
Revision: 30759
http://trac.macosforge.org/projects/macports/changeset/30759
Author: rhwood at macports.org
Date: 2007-11-06 02:32:20 -0800 (Tue, 06 Nov 2007)
Log Message:
-----------
Add [sync] method
Modified Paths:
--------------
users/rhwood/MacPorts.Framework/MPMacPorts.h
users/rhwood/MacPorts.Framework/MPMacPorts.m
Modified: users/rhwood/MacPorts.Framework/MPMacPorts.h
===================================================================
--- users/rhwood/MacPorts.Framework/MPMacPorts.h 2007-11-06 10:31:01 UTC (rev 30758)
+++ users/rhwood/MacPorts.Framework/MPMacPorts.h 2007-11-06 10:32:20 UTC (rev 30759)
@@ -50,10 +50,13 @@
+ (MPMacPorts *)sharedInstance;
+- (void)sync;
+
- (NSDictionary *)search:(NSString *)query;
- (NSDictionary *)search:(NSString *)query caseSensitive:(BOOL)sensitivity;
- (NSDictionary *)search:(NSString *)query caseSensitive:(BOOL)sensitivity matchStyle:(NSString *)style;
- (NSDictionary *)search:(NSString *)query caseSensitive:(BOOL)sensitivity matchStyle:(NSString *)style field:(NSString *)fieldName;
+
- (NSArray *)depends:(MPPort *)port;
- (void)exec:(MPPort *)port withTarget:(NSString *)target;
Modified: users/rhwood/MacPorts.Framework/MPMacPorts.m
===================================================================
--- users/rhwood/MacPorts.Framework/MPMacPorts.m 2007-11-06 10:31:01 UTC (rev 30758)
+++ users/rhwood/MacPorts.Framework/MPMacPorts.m 2007-11-06 10:32:20 UTC (rev 30759)
@@ -86,6 +86,13 @@
#pragma MacPorts API
+- (void)sync {
+ // This needs to throw an exception if things don't go well
+ [[NSDistributedNotificationCenter defaultCenter] postNotificationName:@"MacPortsSyncStarted" object:nil];
+ [interpreter evaluateStringAsString:@"mportsync"];
+ [[NSDistributedNotificationCenter defaultCenter] postNotificationName:@"MacPortsSyncFinished" object:nil];
+}
+
- (NSDictionary *)search:(NSString *)query {
return [self search:query caseSensitive:YES];
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071106/5a8a4222/attachment-0001.html
More information about the macports-changes
mailing list