Carsten Hey | 30 Aug 15:20

Bug#497175: apticron: please check whether /var/lib/aptitude/pkgstates exists before grepping in it or redirect stderr to /dev/null

Package: apticron
Severity: grave
Version: 1.1.22
Tags: patch

The following line causes a mail to be send every night when
/var/lib/aptitude/pkgstates does not exist:

  APTITUDE_HOLDS=`grep "^State: 2" -B 2 /var/lib/aptitude/pkgstates |grep "^Package: .*$" |cut -d" " -f 2`

A possible fix is to change the line into:

  APTITUDE_HOLDS=`grep "^State: 2" -B 2 /var/lib/aptitude/pkgstates |grep "^Package: .*$" |cut -d" " -f
2` 2>/dev/null

According to the changelog this bug was introduced in version 1.1.22.

Regards,
Carsten

Gravatar

Bug#497175: marked as done (apticron: please check whether /var/lib/aptitude/pkgstates exists before grepping in it or redirect stderr to /dev/null)


Your message dated Sat, 06 Sep 2008 00:17:02 +0000
with message-id <E1KblU6-0007oO-M7 <at> ries.debian.org>
and subject line Bug#497175: fixed in apticron 1.1.23
has caused the Debian Bug report #497175,
regarding apticron: please check whether /var/lib/aptitude/pkgstates exists before grepping in it or
redirect stderr to /dev/null
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner <at> bugs.debian.org
immediately.)

--

-- 
497175: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497175
Debian Bug Tracking System
Contact owner <at> bugs.debian.org with problems
(Continue reading)

Gravatar

Bug#497175: marked as done (apticron: please check whether /var/lib/aptitude/pkgstates exists before grepping in it or redirect stderr to /dev/null)


Your message dated Wed, 01 Oct 2008 01:17:03 +0000
with message-id <E1KkqKt-0004pm-4k <at> ries.debian.org>
and subject line Bug#497175: fixed in apticron 1.1.25
has caused the Debian Bug report #497175,
regarding apticron: please check whether /var/lib/aptitude/pkgstates exists before grepping in it or
redirect stderr to /dev/null
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner <at> bugs.debian.org
immediately.)

--

-- 
497175: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497175
Debian Bug Tracking System
Contact owner <at> bugs.debian.org with problems
(Continue reading)


Gmane