~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/adapters.py

  • Committer: Jelmer Vernooij
  • Date: 2011-09-21 14:28:02 UTC
  • mfrom: (14006 devel)
  • mto: This revision was merged to the branch mainline in revision 14010.
  • Revision ID: jelmer@canonical.com-20110921142802-7ggkc204igsy532w
MergeĀ lp:launchpad

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
    # Used for traversal from distro to +pubconf.
131
131
    config = getUtility(IPublisherConfigSet).getByDistribution(distro)
132
132
    return config
 
133
 
 
134
 
 
135
def package_to_sourcepackagename(package):
 
136
    """Adapts a package to its `ISourcePackageName`."""
 
137
    return package.sourcepackagename