~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2012-01-03 07:30:21 UTC
  • mto: This revision was merged to the branch mainline in revision 14621.
  • Revision ID: william.grant@canonical.com-20120103073021-qvprj6kbnpg0h1qv
Update a few templates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009-2012 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
"""View classes related to `IDistroSeries`."""
41
41
 
42
42
from lp import _
43
43
from lp.app.browser.launchpadform import (
44
 
    action,
45
 
    custom_widget,
46
44
    LaunchpadEditFormView,
47
45
    LaunchpadFormView,
48
46
    )
83
81
from lp.services.features import getFeatureFlag
84
82
from lp.services.propertycache import cachedproperty
85
83
from lp.services.webapp import (
 
84
    action,
 
85
    custom_widget,
86
86
    GetitemNavigation,
87
87
    StandardLaunchpadFacets,
88
88
    )
1081
1081
            # The child doesn't have this package.  Treat that as the
1082
1082
            # parent being newer.
1083
1083
            return False
1084
 
        comparison = apt_pkg.version_compare(
 
1084
        comparison = apt_pkg.VersionCompare(
1085
1085
            dsd.parent_source_version, dsd.source_version)
1086
1086
        return comparison < 0
1087
1087