Comments in /etc/apt/preferences

Panu Matilainen pmatilai at laiskiainen.org
Mon Apr 23 01:14:02 PDT 2007


On Thu, 19 Apr 2007, Johannes Kastl wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello again,
>
> I was wondering where I could find info on how tu put comments into
> the preferences file.
>
> This far I assume that only one line beginning with // is allowed, and
> only if there is an entry following.
>
> // pinning foo bar
> Package: *
> Pin: release c=foo-bar
> Pin-Priority: 50
>
> Or using Explanation:, which works or more than one line, but only if
> it is followed by an entry:
>
> Explanation: pinning foo bar
> Package: *
> Pin: release c=foo-bar
> Pin-Priority: 50
>
> No way to have a comment sign like # in shellscripts?

IIRC no, and not really worth fixing, the preferences file as it is today 
(and has been forever) needs to die, really, in favor of something saner 
and more flexible, ditto for sources.list and various other things.

 	- Panu -



More information about the Apt-Rpm mailing list