package cupt libcupt-perl reassign 575715 libcupt-perl found 575715 libcupt-perl/1.5.8 retitle 575715 libcupt: rejects option names with dots in configuration files thanks
intrig...@boum.org wrote: [...] > I tried each of the following stanzas, without success: > > acquire::http::bugs.debian.org::proxy ""; > acquire::http::<bugs.debian.org::proxy ""; > acquire::http::proxy::bugs.debian.org ""; > acquire::http::proxy::bugs.debian.org ""; > > All these attempts trigger the following error messages: > > E: bad config in file '/etc/apt/apt.conf.d/11-proxy' > W: skipped configuration file '/etc/apt/apt.conf.d/11-proxy' > > What is the correct way to do so? > Thanks for reporting this. I documented the way to disable proxy correctly, but you encountered another silly bug - Cupt's parser rejects option names with dots in config files. The fix is one-liner, and it's already in the repository, you may try it. The reason is simple: lack of testing. When I verified the workability of proxy options, I played with them using '-o' syntax in the command line directly. > BTW, what is the rationale of the fact that cupt ignores the whole > config file when it does not like a single line of it? This behavior > forces me to sort APT settings in apt.conf.d/ files by > cupt-compliance, rather than by topic (e.g. I'll have to split my > `11-proxy' file into `11-proxy-apt' and `11-proxy-cupt', which I find > kind of ugly). > Because the nature of ISC-like configuration files doesn't allow line-by-line parsing. For example, following configuration file is valid: -8<- cupt { worker { simulate "false"; }; } ; ->8- I admit that current Cupt parser is written without good error reporting, but I am not going to change it in 1.5.x branch, which is targeted for upcoming stable release. This is subject to improve in the next major version. -- Eugene V. Lyubimkin aka JackYF, JID: jackyf.devel(maildog)gmail.com C++/Perl developer, Debian Developer -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org