[Popcon-developers] Bug#681721: Bug#681721: Bug#681721: popularity-contest: option to limit the list of packages sended to popcon

Stéphane Blondon stephane.blondon at gmail.com
Tue Jul 17 23:30:26 UTC 2012


2012/7/17 Bill Allombert <Bill.Allombert at math.u-bordeaux1.fr>:
> On Mon, Jul 16, 2012 at 11:17:08PM +0200, Stéphane Blondon wrote:
>> The list of packages provided by the debian repository seems to be a
>> good start to me.
>> For example for an AMD64 arch processor:
>>  -  http://ftp.fr.debian.org/debian/dists/squeeze/main/binary-amd64/Packages.bz2
>>  - the same archive for contrib and non-free (?)
>
> But how do you perform the check client-side ?

I see two solutions:
 - download the Packages.bz2 from http ou ftp server, uncompress and
keep only the package names.
or
 - use files in /var/lib/apt/lists to rebuild the packages names. On
my computer, the file
ftp.fr.debian.org_debian_dists_testing_main_binary-amd64_Packages
seems to be a good start. I don't know exactly how it works (with
IndexDiff) but they are text files so I think it's doable.

Then, only stats from packages listed in the previous generated list
are sended.


The first way needs a network connection but popCon needs network to
send the stats, so I don't think it's a problem.



root at foehn:/var/lib/apt/lists# LANG=C; ls -l
total 75152
-rw-r--r-- 1 root root   198615 Jul 17 22:24
ftp.fr.debian.org_debian_dists_testing_InRelease
-rw-r--r-- 1 root root 29021698 Jul 17 16:15
ftp.fr.debian.org_debian_dists_testing_main_binary-amd64_Packages
-rw-r--r-- 1 root root     7876 Jul 17 16:15
ftp.fr.debian.org_debian_dists_testing_main_binary-amd64_Packages.IndexDiff
-rw-r--r-- 1 root root 18902880 Jul 17 04:14
ftp.fr.debian.org_debian_dists_testing_main_i18n_Translation-en
-rw-r--r-- 1 root root     7876 Jul 17 04:14
ftp.fr.debian.org_debian_dists_testing_main_i18n_Translation-en.IndexDiff
-rw-r--r-- 1 root root  3167707 Jul 17 16:15
ftp.fr.debian.org_debian_dists_testing_main_i18n_Translation-fr
-rw-r--r-- 1 root root     7819 Jul 17 16:15
ftp.fr.debian.org_debian_dists_testing_main_i18n_Translation-fr.IndexDiff
-rw-r--r-- 1 root root 25521688 Jul 17 16:18
ftp.fr.debian.org_debian_dists_testing_main_source_Sources
-rw-r--r-- 1 root root     7876 Jul 17 16:18
ftp.fr.debian.org_debian_dists_testing_main_source_Sources.IndexDiff
-rw-r----- 1 root root        0 Jul 26  2010 lock
drwxr-xr-x 2 root root     4096 Jul 18 01:02 partial


-- 
Imprimez ce message en A2 et en couleur au moins 500 fois!
Brûlez des arbres!!

-- envoyé depuis ma centrale à charbon
Stéphane



More information about the Popcon-developers mailing list