c.l.d.Distribution.getPackageNames appears to be an unused/untested code path

Bug #3530 reported by Brad Bollenbach
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Unassigned

Bug Description

make lintmerge reports the following for me, related to c.l.d.Distribution.getPackageNames:

...
E0602:451:Distribution.getPackageNames: Undefined variable 'SourcePackagePublishing'
E0602:470:Distribution.getPackageNames: Undefined variable 'PublishedPackage'
...

These are missing imports.

This almost surely means this is an unused/untested code path. Either the code should be ditched, or it should be tested and made sure it's actually being used in the application.

Revision history for this message
James Henstridge (jamesh) wrote :

I have a fix for this in my launchpad--bugzilla-import--0 branch, which also adds some tests that indirectly exercise the code.

Revision history for this message
Dafydd Harries (daf) wrote :

James: has the branch you mentioned been landed?

Changed in launchpad:
status: New → Accepted
Celso Providelo (cprov)
Changed in launchpad:
status: Accepted → Fixed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.