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

Bug#214555: apache-common: error in modules-config preventing configuration



Package: apache-common
Version: 1.3.28-1
Severity: normal


The calculation of the $LAST and $DIFF variables is like:

  LAST=`wc -l $TMP | cut -d " " -f1
  DIFF=`expr $LAST - $FIRST`

However the output of the cut command has leading spaces,
which means $LAST ends up being blank and the expr in the
$DIFF calculation fails.

There many, many, many ways of extracting the number of lines,
this one works for me:

  LAST=`cat $TMP | wc -l`
  DIFF=`expr $LAST - $FIRST`
  

-- System Information:
Debian Release: 3.0
Architecture: i386
Kernel: Linux achates 2.4.21-rc7-ac1-2 #1 Fri Jun 20 12:11:59 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages apache-common depends on:
ii  libc6                         2.3.2-4    GNU C Library: Shared libraries an
ii  libdb4.1                      4.1.25-4   Berkeley v4.1 Database Libraries [
ii  libexpat1                     1.95.6-4   XML parsing C library - runtime li
ii  mime-support                  3.18-1     MIME files 'mime.types' & 'mailcap
ii  perl [perl5]                  5.8.1-2    Larry Wall's Practical Extraction 

-- no debconf information




Reply to: