Browse files

Apply beta/release version detection logic from desktop to mobile as …

…well. Bug 643574.
  • Loading branch information...
1 parent 941af1c commit cfcf51320b61161429e9ae679254f0338b78b79d @fwenzel committed Mar 21, 2011
Showing with 10 additions and 5 deletions.
  1. +10 −5 apps/input/__init__.py
View
15 apps/input/__init__.py
@@ -181,13 +181,18 @@ class MOBILE:
pretty = _(u'Mobile')
guid = '{a23983c0-fd0e-11dc-95ff-0800200c9a66}'
beta_versions = version_list(
- product_details.mobile_history_development_releases,
- hide_below='4.0b1'
+ dict(product_details.mobile_history_major_releases.items() +
+ product_details.mobile_history_stability_releases.items() +
+ product_details.mobile_history_development_releases.items()),
+ hide_below='4.0b1',
+ filter=(lambda v: v.is_beta)
)
release_versions = version_list(
- dict(product_details.mobile_history_major_releases,
- **product_details.mobile_history_stability_releases),
- hide_below='4.0'
+ dict(product_details.mobile_history_major_releases.items() +
+ product_details.mobile_history_stability_releases.items() +
+ product_details.mobile_history_development_releases.items()),
+ hide_below='4.0',
+ filter=(lambda v: v.is_release)
)
PRODUCT_USAGE = _prods = (FIREFOX, MOBILE)

0 comments on commit cfcf513

Please sign in to comment.