~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/distroseries.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-07-29 18:11:29 UTC
  • mfrom: (13543.7.1 bug-818032)
  • Revision ID: launchpad@pqm.canonical.com-20110729181129-zvc1nlx8jprha429
[r=bac][bug=818032] Disable Upgrade Packages button.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1190
1190
 
1191
1191
    def canUpgrade(self, action=None):
1192
1192
        """Should the form offer a packages upgrade?"""
1193
 
        if getFeatureFlag("soyuz.derived_series_sync.enabled") is None:
 
1193
        if getFeatureFlag("soyuz.derived_series_upgrade.enabled") is None:
1194
1194
            return False
1195
1195
        elif self.context.status not in UPGRADABLE_SERIES_STATUSES:
1196
1196
            # A feature freeze precludes blanket updates.