Package: debmirror
Version: 20050207
Severity: minor
Tags: patch

hi,
debmirror uses find with a wrong syntax which causes the
following warning:
find: warning: you have specified the -depth option after a non-option argument 
-type, but options are not positional (-depth affects tests specified before it 
as well as those specified after it). 

the attached patch fixes this.
regards nico

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.11
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) (ignored: 
LC_ALL set to [EMAIL PROTECTED])

Versions of packages debmirror depends on:
ii  bzip2                         1.0.2-7    high-quality block-sorting file co
ii  libcompress-zlib-perl         1.34-1     Perl module for creation and manip
ii  liblockfile-simple-perl       0.2.5-7    Simple advisory file locking
ii  libwww-perl                   5.803-4    WWW client/server library for Perl
ii  perl [libdigest-md5-perl]     5.8.7-3    Larry Wall's Practical Extraction 
ii  perl-modules [libnet-perl]    5.8.7-3    Core Perl modules
ii  rsync                         2.6.5-1    fast remote file copy program (lik

Versions of packages debmirror recommends:
ii  gnupg                         1.4.1-1    GNU privacy guard - a free PGP rep

-- no debconf information

-- 
Nico Golde - JAB: [EMAIL PROTECTED] | GPG: 0x73647CFF
http://www.ngolde.de | http://www.muttng.org | http://grml.org 
VIM has two modes - the one in which it beeps 
and the one in which it doesn't -- encrypted mail preferred
--- /usr/bin/debmirror  2005-02-07 22:22:02.000000000 +0100
+++ /tmp/debmirror      2005-06-25 16:38:08.000000000 +0200
@@ -929,7 +929,7 @@
   # makes directories.. Sort so they are removable in bottom-up
   # order.
   chdir($mirrordir) or die "chdir $mirrordir: $!";
-  system("find . -type d -depth ! -name . ! -name .. -print0 | xargs -0 rmdir 
2>/dev/null") if (! $dry_run);
+  system("find . -depth -type d ! -name . ! -name .. -print0 | xargs -0 rmdir 
2>/dev/null") if (! $dry_run);
 }
 
 exit;

Attachment: signature.asc
Description: Digital signature

Reply via email to