On Tue, 06 Jun 2006 12:04:27 +0200, Michael Kaaden wrote:
> Looking into this, I assume line 90
>
> if [ `ls ${PKGPATH}${PKG}_${VERFILE}_*.deb >& /dev/null` ] ; then
>
> to be the source of the problem.
It is. ls will not produce any output (due to the redirection to
/dev/null), so the test ([) has actually nothing to test and fails.
Inverting the test makes it always succeed which makes it superfluous.
I assume that the following was meant:
--- /usr/sbin/apticron 2006-05-19 05:24:50.000000000 +0200
+++ bin/apticron 2006-06-12 09:43:08.000000000 +0200
@@ -87,7 +87,7 @@
VER=`LC_ALL=en /usr/bin/apt-cache policy $PKG |\
/bin/grep Candidate: | /usr/bin/cut -f 4 -d \ `
VERFILE=`echo "$VER" | /bin/sed -e "s/:/%3a/g"`
- if [ `ls ${PKGPATH}${PKG}_${VERFILE}_*.deb >& /dev/null` ] ;
then
+ if ls ${PKGPATH}${PKG}_${VERFILE}_*.deb >& /dev/null ; then
DEBS="$DEBS ${PKGPATH}${PKG}_${VERFILE}_*.deb"
fi
echo -e "\t"$PKG $VER
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]