Download Stats for PPA seem to be wrong per distribution

Asked by M.Hanny Sabbagh

Hello, I am interested in the download stats for my PPA on launchpad. Googling led me to many Python scripts besides the official Launchpad API, however, there's a problem that the download counts are the same for all the different Ubuntu versions.

For example, for my fossproject/ppa PPA and green-recorder package, I am getting:

trusty: 11437
xenial: 11437
artful: 11437
zesty: 11439

These numbers don't make any sense (did users really download the package equally among all the Ubuntu versions?!). It seems to me that there's a problem in the API or something?

I am using the script from here: https://github.com/YokoZar/ppa-stats

Any help is appreciated.

Regards.

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
William Grant
Solved:
Last query:
Last reply:
Revision history for this message
Best William Grant (wgrant) said :
#1

Launchpad is only able to gather statistics from observing which files apt downloads. This means that if the same binary has been copied between series or architectures it's not possible for Launchpad to distinguish which series or architecture the download should be attributed to. Internally, each binary file maps to a unique bucket, but many binary_package_publishing_history objects on the API may map to the same bucket if they represent the same file.

So each download counts in exactly one number, but that number may be returned by multiple BPPHs if you've copied binaries between series or if the binary is architecture-independent.

Revision history for this message
M.Hanny Sabbagh (hannysabbagh) said :
#2

Thanks William Grant, that solved my question.