summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-24 19:01:29 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:17 -0800
commit82aa2434adc147c30430af1b376a27de10215bf2 (patch)
treef09fdad7c53ff7b98162a1611dc75ee78972cfc8 /MobileCydia.mm
parenta4d8c84e1230082bae2d206a88742b724287dea9 (diff)
Export package.tags to JavaScript.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 6b07c10..2d5b831 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -2367,6 +2367,7 @@ struct PackageNameOrdering :
@"source",
@"sponsor",
@"support",
+ @"tags",
@"warnings",
nil];
}
@@ -3053,6 +3054,10 @@ struct PackageNameOrdering :
_assert(false);
}
+- (NSArray *) tags {
+ return tags_;
+}
+
- (BOOL) hasTag:(NSString *)tag {
return tags_ == nil ? NO : [tags_ containsObject:tag];
}