summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2013-10-27 23:39:00 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2013-10-27 23:39:00 -0700
commit00067a67a423c15866f1db4c98c84c9096126df4 (patch)
tree7867bed5768b1cf9694151e83bfc32be74e53c6f
parent8fb7c7a18f4ffb66f5b277f6b490c2594c0552b4 (diff)
Re-add package-level Support as override for Bugs.
-rw-r--r--MobileCydia.mm8
1 files changed, 5 insertions, 3 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 8ffb37d..7a16338 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -1848,7 +1848,6 @@ struct ParsedPackage {
CYString homepage_;
CYString author_;
- CYString bugs_;
CYString support_;
};
@@ -2234,6 +2233,7 @@ struct PackageNameOrdering :
parser = &[database_ records]->Lookup(file_);
_end
+ CYString bugs;
CYString website;
_profile(Package$parse$Find)
@@ -2246,7 +2246,7 @@ struct PackageNameOrdering :
{"depiction", &parsed->depiction_},
{"homepage", &parsed->homepage_},
{"website", &website},
- {"bugs", &parsed->bugs_},
+ {"bugs", &bugs},
{"support", &parsed->support_},
{"author", &parsed->author_},
{"md5sum", &parsed->md5sum_},
@@ -2281,6 +2281,8 @@ struct PackageNameOrdering :
parsed->homepage_ = website;
if (parsed->homepage_ == parsed->depiction_)
parsed->homepage_.clear();
+ if (parsed->support_.empty())
+ parsed->support_ = bugs;
_end
_end
} }
@@ -2748,7 +2750,7 @@ struct PackageNameOrdering :
}
- (NSString *) support {
- return parsed_ != NULL && !parsed_->bugs_.empty() ? parsed_->bugs_ : [[self source] supportForPackage:id_];
+ return parsed_ != NULL && !parsed_->support_.empty() ? parsed_->support_ : [[self source] supportForPackage:id_];
}
- (NSArray *) files {