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

Bug#527200: apt-key fails if GREP_OPTIONS isn't defined



Package: apt
Version: 0.7.20.2+lenny1
Severity: important

Hi!

apt-key fails if GREP_OPTIONS is not defined. The guilty lines are:

set -e
unset GREP_OPTIONS

and, if apt-key fails, updating apt fails too (it's called on postinst)

way to reproduce it:

$ unset GREP_OPTIONS;apt-key update || echo fails
fails
$ GREP_OPTIONS=a apt-key update || echo fails
(it works)

I think that changing the order of that lines to:

unset GREP_OPTIONS
set -e

should fix the problem.

Thanks!
Horacio J. Peña



Reply to: