Warn but don't error for unknown pacman.conf directives
commit3707d5bc468dcd8611073d22b24d6f6be19bbe94
authorDan McGee <dan@archlinux.org>
Thu, 17 Mar 2011 00:03:52 +0000 (16 19:03 -0500)
committerDan McGee <dan@archlinux.org>
Thu, 17 Mar 2011 00:52:54 +0000 (16 19:52 -0500)
treecb62ac6373e4ef43bfe2217fcb1d5be161062534
parent40a6c5c5eca05b5f65b1dc0c6d5c87fcd313fb2e
Warn but don't error for unknown pacman.conf directives

This makes all the pacman developers' jobs harder as we have to switch
files whenever running multiple pacman versions and are using newly
introduced options. Instead of erroring out, print warnings and continue
on.

This patch also fixes a const-correctness issue. We immediately cast a
'const char *' to a 'char *' in setrepeatingoption(), which is just
plain wrong as we manipulate the underlying string. Fix the types and
remove the now unnecessary variable.

Finally, a few messages change here for consistency and clarity and
because we continue parsing rather than bailing out on a problem.

Signed-off-by: Dan McGee <dan@archlinux.org>
src/pacman/pacman.c