[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Popcon-developers] [GSOC] Popularity Contest



On Tue, Jun 21, 2016 at 10:55:54AM -0300, Luciano Prestes wrote:
> [Petter Reinholdtsen]
> 
> I update the patch, and test on Debian wheezy.
> Following your advice the script can be run only with the popcon-entries
> path like argument.
> Example: create_popcon_clusters.py [popcon-entries_path]
> 
> The patch is on the attachment.

Your patch is still using 'apt-cache pkgnames'.
I recommend not to rely on the configuration of apt on the local system
but instead to use a mirror, as popcon.py does:

mirrorbase = "/srv/mirrors/debian"
for d in glob.glob('%s/dists/stable/*/binary-i386/Packages.gz' %
mirrorbase):
    read_depends(d)
for d in glob.glob('%s/dists/unstable/*/binary-i386/Packages.gz' %
mirrorbase):
    read_depends(d)

Ths way you get both the packages in stable and in unstable
independently of the local machine configuration.

Cheers,
Bill.



Reply to: