Package: vserver-debiantools
Version: 0.3.4
Severity: minor
Tags: patch
In the the aptcleanup() function find is called with the -mindepth and
-maxdepth arguments causing this warning:
find: warning: you have specified the -mindepth option after a
non-option argument -name, but options are not positional (-mindepth
affects tests specified before it as well as those specified after
it). Please specify options before other arguments.
The command is:
find "$1" -name *.deb -printf "%f\n" -mindepth 1 -maxdepth 1
I believe this should be:
find "$1" -mindepth 1 -maxdepth 1 -name *.deb -printf "%f\n"
Here is a patch (produced with diff -u. Is that the correct way??). I
tested it, but I am not sure what this bit of newvserver is supposed
to do so I have no idea if it works or not. But the errors went away :-)
--- newvserver.orig 2007-04-30 02:48:05.000000000 -0400
+++ newvserver 2007-04-30 02:44:28.000000000 -0400
@@ -372,7 +372,7 @@
aptcleanup() {
apt-get autoclean -o Dir::Cache::Archives="$1"
OLD=""
- for P in $(find "$1" -name *.deb -printf "%f\n" -mindepth 1 -maxdepth 1 |
sed -e "s/_.*//;") ; do
+ for P in $(find "$1" -mindepth 1 -maxdepth 1 -name *.deb -printf "%f\n" |
sed -e "s/_.*//;") ; do
if [ "$P" == "$OLD" ] ; then
rm -f "$1"/$P_* > /dev/null 2>&1
fi
--
sg
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]