[28930] users/rhwood/Pallet/PortAuthority.m
source_changes at macosforge.org
source_changes at macosforge.org
Wed Sep 12 02:02:06 PDT 2007
Revision: 28930
http://trac.macosforge.org/projects/macports/changeset/28930
Author: rhwood at macports.org
Date: 2007-09-12 02:02:06 -0700 (Wed, 12 Sep 2007)
Log Message:
-----------
Use [MPMacPorts version] to get the MacPorts version instead of attempting to extract it ourselves.
Modified Paths:
--------------
users/rhwood/Pallet/PortAuthority.m
Modified: users/rhwood/Pallet/PortAuthority.m
===================================================================
--- users/rhwood/Pallet/PortAuthority.m 2007-09-12 08:59:39 UTC (rev 28929)
+++ users/rhwood/Pallet/PortAuthority.m 2007-09-12 09:02:06 UTC (rev 28930)
@@ -465,15 +465,12 @@
{
NSMutableDictionary *options;
NSMutableAttributedString *credits;
- NSMutableString *version;
- version = [NSMutableString stringWithContentsOfFile:[[macPorts prefix] stringByAppendingPathComponent:@"etc/ports/dp_version"]];
- [version deleteCharactersInRange:NSMakeRange([version length] - 1, 1)];
credits = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:
NSLocalizedStringFromTable(@"MacPorts Version: %@",
@"Localizable",
@"MacPorts Version"),
- version]];
+ [macPorts version]]];
[credits setAlignment:NSCenterTextAlignment range:NSMakeRange(0, [credits length])];
[credits addAttribute:@"NSFontAttributeName" value:[NSFont labelFontOfSize:[NSFont labelFontSize]] range:NSMakeRange(0, [credits length])];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070912/9bb38187/attachment.html
More information about the macports-changes
mailing list