[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#460350: Default options in lintianrc



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi

I have been looking at #460350 (plus clones) and was thinking maybe we
could do something similar to dpkg-source and its
debian/source/{local-,}options files.  That is, we allow options to be
listed in lintianrc (without leading "--" and only in long-form etc.)

Since lintianrc is currently used for setting variables, I suggest we
keep backwards compatibility; any line starting with "LINTIAN_" will be
read as an "old" variable and let it be translated to the relevant
option (e.g. LINTIAN_ROOT -> root).

Format changes of lintianrc aside, we will also need to refactor the
frontend.  Here I propose that we delay interpretation of options (save
for stuff like --cfg); the exact idea I had in mind was to stuff all
options (with value) into a hash (GetOptions can do that for us as I
recall) and as we parse the lintianrc file, we will options from there
to the hash (as appropriate).

Any comments/ideas?

~Niels

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJN4uCqAAoJEAVLu599gGRCnzEP/2ofjKISrSVzYI+bcHAfg0YT
GF7+4HcGleoUkzrc2jmr2Rv1mEzvGeVA50mvcdSEFTZnB1HXhtsGoUHIz52Wsscs
LJXGnl8lNqKIupGruwoq8aMUuMCOdwR7+1LOmyPW0FH9bglXNlrYw8JM1vCjdBs/
2AELwxcSPKY8N5hUl6qN6mxGkON3XIe7NvWwH5oJ6MQ5t0agxsuA7Wux7yiFLz78
DmH6PzESvsQfxLKwtaUYTEvwOSm3tMpYt9tw8uhsyhpf18m1++Gq9eFrHK9LOj/v
xfI41RIboWgrVqr7aZUdVviu6DYHLlya/78kOrzmctk772jo38/rnnJKuLf8fkOH
/HEBYSDOEM2yIDX/43c++Cr3BpbvdXOXRLO1h54g3mIvKITM+3W7MBoMSWdFAE+r
jqJe7Wf7iZLAkj8+Kca6TyXwvxw4FX23G4yM6a6QShfFAQivWYWrED5J4QzcJzxJ
g7Xuo0plQvvQPtXl91cA2jSEILUsEjFMB8TMP//nF9e8Kp0kYftaLCqr6GAKBC6Y
9OBJGBNy0nwC8SVgxaZ9RSg2KlcH3jSV3YuEpHymzSaTqS0mjA+PoGS+tBj1Qtsf
8c9rrfBbspFXd9OtqA9f4IPdcOjwwmv6A43lKQuu+W9gABSGxDur99n3GPH+TGUm
nno0lpLe4uelb6nATd+Q
=/gkI
-----END PGP SIGNATURE-----



Reply to: