Package: pbuilder
Version: 0.131
Severity: minor
Tags: patch

After building, one receives the following output:


Copying back the cached apt archive contents
find: warning: you have specified the -maxdepth option after a
non-option argument -name, but options are not positional (-maxdepth
affects tests specified before it as well as those specified after it).
Please specify options before other arguments.


Seems to be a cosmetic error as pbuilder still works.  Included is a
patch that should reposition the -maxdepth option to make `find` happy.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (650, 'unstable'), (640, 'experimental'), (500, 'testing'), (500, 
'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-rc2-1-p4
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages pbuilder depends on:
ii  cdebootstrap                  0.3.8      Bootstrap a Debian system
ii  coreutils                     5.2.1-2.1  The GNU core utilities
ii  debianutils                   2.14.3     Miscellaneous utilities specific t
ii  gcc                           4:4.0.1-3  The GNU C compiler
ii  wget                          1.10.1-1   retrieves files from the web

Versions of packages pbuilder recommends:
ii  devscripts                    2.9.7      Scripts to make the life of a Debi
ii  fakeroot                      1.5.1      Gives a fake root environment
ii  sudo                          1.6.8p9-3  Provide limited super user privile

-- no debconf information
diff -Naur pbuilder-0.131/pbuilder-modules pbuilder-0.131-new/pbuilder-modules
--- pbuilder-0.131/pbuilder-modules     2005-08-28 00:24:19.000000000 -0400
+++ pbuilder-0.131-new/pbuilder-modules 2005-09-30 00:06:52.529462012 -0400
@@ -310,7 +310,7 @@
            doit=cp
        fi
        echo "Obtaining the cached apt archive contents"
-       find "$APTCACHE" -name \*.deb -maxdepth 1 | \
+       find "$APTCACHE" -maxdepth 1 -name \*.deb  | \
            while read A ; do
            $doit "$A" "$BUILDPLACE/var/cache/apt/archives/" || true
        done
@@ -329,7 +329,7 @@
        else
            doit=cp
        fi
-       find "$BUILDPLACE/var/cache/apt/archives/" -name \*.deb -maxdepth 1 | \
+       find "$BUILDPLACE/var/cache/apt/archives/" -maxdepth 1 -name \*.deb  | \
            while read A ;do
            if [ ! -f "$APTCACHE/"$(basename "$A") -a -f "$A" ]; then
                echo " -> new cache content "$(basename "$A")" added"
diff -Naur pbuilder-0.131/pbuilder-updatebuildenv 
pbuilder-0.131-new/pbuilder-updatebuildenv
--- pbuilder-0.131/pbuilder-updatebuildenv      2005-06-03 20:52:18.000000000 
-0400
+++ pbuilder-0.131-new/pbuilder-updatebuildenv  2005-09-30 00:07:13.581006520 
-0400
@@ -52,7 +52,7 @@
 if [ "${AUTOCLEANAPTCACHE}" = "yes" -a -n "$APTCACHE" ]; then
     echo " -> Cleaning the cached apt archive"
     $CHROOTEXEC /usr/bin/apt-get autoclean || true
-    find "$APTCACHE/" -name \*.deb -maxdepth 1 | \
+    find "$APTCACHE/" -maxdepth 1 -name \*.deb | \
        while read A; do
            if [ ! -f "$BUILDPLACE/var/cache/apt/archives/"$(basename "$A") -a \
                -f "$A" ]; then

Reply via email to