Package: cvs-buildpackage
Version: 5.19
Severity: minor

cvs-upgrade contains the following code snippet:

if [ "X$docmd" = "XYES" ]; then
    numdirs=`ls -1 | wc -l`
    if [ ${numdirs} -gt 1 ]; then
        echo >&2 "Source unpacked into more than one dir"
        cd ..
        mkdir "${tmpdir}-new"
        mv "${tmpdir}" "${tmpdir}-new/${package}-${upstream_version}"
        mv "${tmpdir}-new" "${tmpdir}"
        cd "${tmpdir}"
    fi
    $action cd `ls -1`
else
    echo "numdirs=\`ls -1 | wc -l\`"
    echo " if [ $numdirs -gt 1 ]; then "
    echo "   echo >&2 Source unpacked into more than one dir"
    echo "   cd ..; "
    echo "   exit 1"
    echo "   mkdir ${tmpdir}-new"
    echo "   mv ${tmpdir} ${tmpdir}-new/${package}-${upstream_version}"

In the -n branch the $ sign in $numdirs should be escaped.
Also, the if line probably shouldn't be indented.
Also^2, the "exit 1" line seems to be spurious (as is the semicolon
on the line before, which however does not harm).

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27makholm6
Locale: LANG=en_DK, LC_CTYPE=en_DK.iso88591 (charmap=ISO-8859-1)

Versions of packages cvs-buildpackage depends on:
ii  cvs                          1:1.12.9-14 Concurrent Versions System
ii  dpkg-dev                     1.13.10     Package building tools for Debian

cvs-buildpackage recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to