When listPackages is called without a tagID, userID, or pkgID option, it performs a fundamentally different query than it does it the other cases. This case was split off to the listPackagesSimple function in #223, but the polymorphic behavior goes back to the very beginning.
listPackages
listPackagesSimple
In the simple case (no tagID, userID, or pkgID option), the call simply queries the package table. This will show all packages in the system. However, when any of these options are given, the call will query the tag_packages table, showing only packages that are included in some tag.
package
tag_packages
This can lead to the confusing situation where a call to listPackages() shows a particular package, but a call to listPackages(pkgID=N) for said package reports no results.
listPackages()
listPackages(pkgID=N)
As this is very longstanding behavior, I'd be hesitant to alter it. However, it is worth clarifying in the docstring.
this discrepancy was noted by @mfilip
Metadata Update from @mikem: - Custom field Size adjusted to None
Metadata Update from @tkopecek: - Issue set to the milestone: 1.35
Metadata Update from @tkopecek: - Issue set to the milestone: 1.34.1 (was: 1.35)
PR #3904
Metadata Update from @tkopecek: - Issue tagged with: no_qe
Metadata Update from @tkopecek: - Issue set to the milestone: 1.34 (was: 1.34.1)
Commit b2a53c97 fixes this issue
Commit c1925782 relates to this ticket
This issue has been migrated to Fedora Forge: https://forge.fedoraproject.org/koji/koji/issues/3874
Please continue any further discussion there.