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



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to