Not logged in - Log In / Register


SourcePackage licenses


Overall Summary

Summary: This specification describes how sourcepackage licenses will be stored and tracked within Launchpad using the new debian copyright format. See and for more information.

Goal/Deliverables: Extract and store as much information as possible from the new machine readable copyright format when it's used.

We will know we have finished when the license relationships expressed in the new copyright format are stored and accessible after a sourcepackage upload is processed.

Release Note

This basic implementation will enrich the Launchpad sourcepackage model with all the copyright information provided by the packager. Once it's completed other subsystems will be able to deal with sourcepackages according to their licences.


Licenses are not well represented at the sourcepackage level. It's currently very hard to extract that information and consider licences as an attribute of the package itself. It's about time to allow developers to equate licences issues properly in their packages and allow users to browse/query packages considering this aspect.

Use cases


  1. The ubuntu and the debian community are happy with specification;

  2. There is no major different (pattern-wise) between the debian format and the RPM proposal (see;

  3. This specification will focus in storing a comprehensive set of data that represents what is encoded in the debian/copyright file. No UI features have to be delivered yet.
  4. ...

User Interface

None, see Assumptions


Code Changes

The debian/copyright content is already stored during upload processing as part of the NascentUpload workflow.

That step of the code should be extended to also parse the copyright content in a intermediate object (probably reusing or current RFC-822 parser) to allow the SourcePackageReleaseCopyright records to inserted later, at the same point we actually create the SourcePackageRelease.

Schema Changes


Since the new copyright format isn't being used yet, no migration is required.

However if the deployment get late and sources using the new format get uploaded, the original debian/copyright content is being stored in SourcePackageRelease and could be easily re-processed.

Unresolved issues

None, so far.


Soyuz/SourcePackageLicenses (last edited 2009-02-11 18:16:08 by cprov)