[Reportbug-maint] Bug#645870: reportbug: Doesn't parse /etc/apt/preferences correctly

Jan Huijsmans huysmans at koffie.nu
Wed Oct 19 08:12:09 UTC 2011


Package: reportbug
Version: 6.2.2
Severity: important

Dear Maintainer,

When reporting a bug I noticed the 'APT prefers' line below, when
the content of /etc/apt/preferences is as included below.

It doesn't seem to ignore the commented out lines and/or can't
handle preferences for specified packages.

Greetings,

Jan Huijsmans

cat /etc/apt/preferences
#Package: *clamav*
#Pin: version 0.96*
#Pin-Priority: 500

#Package: asterisk*
#Pin: release a=oldstable
#Pin-Priority: 500

Package: grub* mailgraph amule*
Pin: release a=stable
Pin-Priority: 500

Package: *
Pin: release a=testing
Pin-Priority: 500

Package: *
Pin: release a=stable
Pin-Priority: 60

Package: squeezeboxserver
Pin: release a=unstable
Pin-Priority: 500

Package: *
Pin: release a=unstable
Pin-Priority: 50

-- Package-specific info:
** Environment settings:
EDITOR="vi"
INTERFACE="gtk2"

** /home/huysmans/.reportbugrc:
reportbug_version "5.1.1"
mode standard
ui gtk2

-- System Information:
Debian Release: wheezy/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'testing'), (60, 'stable'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.ISO8859-15, LC_CTYPE=en_US.ISO8859-15 (charmap=ISO-8859-15) (ignored: LC_ALL set to en_US.ISO8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages reportbug depends on:
ii  apt               0.8.15.8
ii  python            2.7.2-8 
ii  python-reportbug  6.2.2   

reportbug recommends no packages.

Versions of packages reportbug suggests:
ii  debconf-utils                            <none>     
ii  debsums                                  <none>     
ii  dlocate                                  <none>     
ii  emacs22-bin-common | emacs23-bin-common  <none>     
ii  file                                     5.08-1     
ii  gnupg                                    1.4.11-3   
ii  postfix [mail-transport-agent]           2.8.3-1    
ii  python-gtk2                              2.24.0-2   
ii  python-gtkspell                          <none>     
ii  python-urwid                             <none>     
ii  python-vte                               <none>     
ii  xdg-utils                                1.1.0~rc1-2

-- no debconf information





More information about the Reportbug-maint mailing list