Package: debianutils
Version: 2.8.4
Severity: wishlist
Tags: patch

When I use the -d flag, I would like that savelog could remove the old
files.  I submit an experimental patch to add this wishlist feature.
This way the oldest versions of the log file are removed and remain
the $cycle newest files.

diff debianutils-2.8.4/savelog debianutils-2.8.3tp1/savelog
219c219,223
<       rm -f "$newname.$cycle" "$newname.$cycle$DOT_Z"
---
>       if test -n "$datum" ; then
>           ls -t "$newname".[0-9]*[0-9] "$newname".[0-9]*[0-9]$DOT_Z 2> 
> /dev/null | tr \\n ' ' | cut -f $((count + 1 ))- -d ' ' | xargs rm -f
>       else
>           rm -f "$newname.$cycle" "$newname.$cycle$DOT_Z"
>       fi


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-3-686-smp
Locale: LANG=C, [EMAIL PROTECTED] (charmap=UTF-8)

Versions of packages debianutils depends on:
ii  coreutils             5.2.1-2            The GNU core utilities
ii  libc6                 2.3.2.ds1-22sarge3 GNU C Library: Shared libraries an

-- no debconf information


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

Reply via email to