The problem seems not to be # used for comments, but empty lines. If I do this: Package: * Pin: release o=madduck, release a=sid Pin-Priority: 50 #Package: mdadm #Pin: release o=madduck, release a=sid #Pin-Priority: 600 Package: mplayer Pin: origin www.debian-multimedia.org Pin-Priority: -1 I get: E: Invalid record in the preferences file, no Package header If I comment either of the empty lines, it works. Note that the problem only exists with a commented block, i.e. multiple empty lines in a row are otherwise okay. -- .''`. martin f. krafft <madduck@debian.org> : :' : proud Debian developer, author, administrator, and user `. `'` http://people.debian.org/~madduck - http://debiansystem.info `- Debian - when you have better things to do than fixing systems
Attachment:
signature.asc
Description: Digital signature (GPG/PGP)