Hi Stephen
Thanks a lot.
Will be applied on next upload.
Regards,
// Ola
On Mon, Apr 30, 2007 at 02:36:36AM -0400, Stephen Gregory wrote:
> 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
>
>
--
--------------------- Ola Lundqvist ---------------------------
/ [EMAIL PROTECTED] Annebergsslingan 37 \
| [EMAIL PROTECTED] 654 65 KARLSTAD |
| +46 (0)54-10 14 30 +46 (0)70-332 1551 |
| http://opalsys.net/ UIN/icq: 4912500 |
\ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /
---------------------------------------------------------------
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]