Bug 745702, fix OS deprecation when using snippets with newer attributes, r=rhelmer

git-svn-id: svn://10.0.0.236/trunk@263755 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nrthomas%gmail.com 2012-04-26 03:31:31 +00:00
parent decb9ddc57
commit 2df124ebde
4 changed files with 47 additions and 0 deletions

View File

@ -198,3 +198,10 @@
|build|channel|complete|partial|hasUpdate?|hasComplete?|hasPartial?|isValidXml?|hasBillboardURL?|isShowPrompt?|isShowNeverForVersion?|isShowSurvey?|hasActions?|hasOpenURL?|hasNotificationURL?|hasAlertURL?|
|2000000001|channel|complete002|partial002|true|true|true|true|true|true|false|true|true|true|true|true|
|2000000002|channel|complete002|partial002|true|true|true|true|true|false|true|true|true|true|true|true|
1 deprecated platform
|aus.Verify|${host}|3|${product}|${version}|${platform}|${locale}|
|build|channel|complete|partial|osVersion|hasUpdate?|hasComplete?|hasPartial?|isValidXml?|hasBillboardURL?|isShowPrompt?|isShowNeverForVersion?|isShowSurvey?|hasActions?|hasOpenURL?|hasNotificationURL?|hasAlertURL?|
|2000000003|channel|complete002|partial002|Windows_NT 5.0|true|true|true|true|true|true|false|true|true|true|true|true|
|2000000003|channel|complete002|partial002|Windows_95|false|false|false|true|false|false|false|false|false|false|false|false|

View File

@ -0,0 +1,18 @@
version=2
type=complete
url=http://synthetic.1.0.platform.buildid.locale.channel/complete002
hashFunction=SHA512
hashValue=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
size=12345
build=20000000001
displayVersion=2.0
appVersion=2.0
platformVersion=2.0
detailsUrl=http://detailsURL
billboardURL=http://billboardURL
openURL=http://openURL
notificationURL=http://notificationURL
alertURL=http://alertURL
showPrompt=true
showSurvey=true
actions=showNotification showAlert

View File

@ -0,0 +1,18 @@
version=2
type=partial
url=http://synthetic.1.0.platform.buildid.locale.channel/partial002
hashFunction=SHA512
hashValue=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
size=12345
build=20000000001
displayVersion=2.0
appVersion=2.0
platformVersion=2.0
detailsUrl=http://detailsURL
billboardURL=http://billboardURL
openURL=http://openURL
notificationURL=http://notificationURL
alertURL=http://alertURL
showPrompt=true
showSurvey=true
actions=showNotification showAlert

View File

@ -265,6 +265,10 @@ class Patch extends AUS_Object {
// Store information found only in complete snippets.
// This information is tied to the <update> element.
if ($this->isComplete()) {
# so that isSupported keeps working
if (isset($this->appVersion)) {
$this->setVar('updateExtensionVersion', $this->appVersion, true);
}
if (isset($this->detailsUrl)) {
$this->setVar('hasDetailsUrl', true, true);