Merge lp:~sinzui/launchpad/ds-get-source-package into lp:launchpad
Proposed by
Curtis Hovey
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~sinzui/launchpad/ds-get-source-package |
Merge into: | lp:launchpad |
Diff against target: |
22 lines (+3/-2) 1 file modified
lib/lp/registry/interfaces/distroseries.py (+3/-2) |
To merge this branch: | bzr merge lp:~sinzui/launchpad/ds-get-source-package |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer (community) | code | Approve | |
Review via email: mp+20172@code.launchpad.net |
To post a comment you must log in.
This is my branch to clarify distroseries getSourcePackage().
lp:~sinzui/launchpad/ds-get-source-package /bugs.launchpad .net/bugs/ id launchpad/ api/index. html; make build implementation: no one
Diff size: 23
Launchpad bug: https:/
Test command:
rm lib/canonical/
Pre-
Target release: 10.02
clarify distroseries getSourcePackage() ------- ------- ------- ------- ----
-------
When using the following commands with the Launchpad API I received back an
object and I don't think I should have.
karmic. getSourcePackag e(name= 'compiz- plugins' ) karmic/ +source/ compiz- plugins>
<source_package at .../ubuntu/
However, compiz-plugins does not exist in Karmic /edge.launchpad .net/ubuntu/ karmic/ +source/ compiz- plugins.
https:/
Curtis:
The behaviour is correct. SourcePackages are meta objects for accessing
publishing history, files, and common names. getSourcePackage() is used
by Soyuz and Code to create the first publishing record of a file.
The SourcePackages may also represent a package that was in a distro
series, but was deleted.
Rules
-----
* Update getSourcePackage() and getBinaryPackage() documentation to
clarify that the object returned is not guaranteed to be published
in the series.
QA
--
* Verify that the API states that the methods do not guarantee that the
object was published in the series.
Lint
----
Linting changed files: registry/ interfaces/ distroseries. py
lib/lp/
Test
----
None
Implementation
--------------
* lib/lp/ registry/ interfaces/ distroseries. py
* Updated the documentation.