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

Re: Statistics on non-free usage



On Thu, Jan 08, 2004 at 11:16:06AM -0600, John Goerzen wrote:
> Here is the output:
> 
> Package Name                        Section         Vote  Old Rcnt Unkn Totl
> xpdf-chinese-simplified             non-free/text      0    0    0    0    0
> xpdf-chinese-traditional            non-free/text      0    0    0    0    0
> xpdf-japanese                       non-free/text      0    0    0    1    1
> xpdf-korean                         non-free/text      0    0    0    0    0

It looks like /usr/sbin/popularity-contest only checks the use times on
binary files:

#Read dpkg database of installed packages

open PACKAGES, "dpkg-query --show --showformat='\${status} \${package}\\n'|";
while (<PACKAGES>)
{
  /^.*installed *(.+)$/ or next;
  my $pkg=$1;
  $popcon{$pkg}=[0,0,$pkg,"<NOFILES>",""];
  open FILES, "$dpkg_db/$pkg.list";
  my $bestatime = undef;
  while (<FILES>)
  {
    chop;
    m{/\.*bin/|/sbin/|^/usr/games/|\.[ah]$} or next;

....

The above xpdf-* packages don't contain any binaries, so no results will
be collected. There are some other packages like that in non-free too.


Hamish
-- 
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>



Reply to: