• Bug#265360: popularity-contest: reporting of Python files broken

    From Martin v. Loewis@1:229/2 to All on Thu Aug 12 23:20:05 2004
    From: [email protected]

    Package: popularity-contest
    Version: 1.23
    Severity: normal

    The popularity-contest is broken wrt. to pyc files.
    It considers a file present in a package only if .pyc
    is listed in the package contents. However, according
    to the python-policy (/usr/share/doc/python/python-policy*),
    a package must generate .pyc files upon installation,
    instead of including them in the .deb file.

    So popularity-contest should use the following procedure:
    - if a file ends with .py, check whether .pyc is present.
    If so, use time stamps of this file instead.
    - also check for .pyo in addition to .pyc.

    Regards,
    Martin


    -- System Information:
    Debian Release: 3.1
    APT prefers unstable
    APT policy: (500, 'unstable')
    Architecture: i386 (i686)
    Kernel: Linux 2.6.7-1-686-smp
    Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro

    Versions of packages popularity-contest depends on:
    ii debconf 1.4.30 Debian configuration management sy ii dpkg 1.10.23 Package maintenance system for Deb ii exim4 4.34-5 An MTA (Mail Transport Agent)
    ii exim4-daemon-light [mail-tran 4.34-5 Lightweight version of the Exim (v

    -- debconf information:
    popularity-contest/hostid-failed:
    * popularity-contest/participate: true


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From =?ISO-8859-1?Q?=22Martin_v=2E_L=F6w@1:229/2 to All on Sun Aug 15 21:40:09 2004
    From: [email protected]

    And I believe it should stay like that, to avoid a maintenence hell,
    trying to keep popcon up to date with all the sub-policies in debian.
    I do not want to code information about debian sub-policies into
    popcon.

    In that case, the line

    m{/bin/|/sbin/|^/usr/games/|\.[ah]$|\.pm$|\.pyc$} or next;

    contains dead code: the part ".pyc$" will never match, assuming
    all Python packages follow the Python policy.

    Regards,
    Martin


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)