Hello community,
here is the log from the commit of package kdump-helpers
checked in at Fri Jul 27 15:39:36 CEST 2007.
--------
--- kdump-helpers/kdump-helpers.changes 2007-07-02 16:50:18.000000000 +0200
+++ /mounts/work_src_done/STABLE/kdump-helpers/kdump-helpers.changes 2007-07-27 15:08:33.309251000 +0200
@@ -1,0 +2,7 @@
+Fri Jul 27 12:51:44 CEST 2007 - bwalle@suse.de
+
+- update to 0.2.4 (#302257)
+ o implement KDUMP_KEEP_OLD_DUMPS = -2 for deleting all dumps
+ (except the latest, which is saved afterwards
+
+-------------------------------------------------------------------
Old:
----
kdump-helpers-0.2.3.tar.bz2
New:
----
kdump-helpers-0.2.4.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ kdump-helpers.spec ++++++
--- /var/tmp/diff_new_pack.C15158/_old 2007-07-27 15:38:24.000000000 +0200
+++ /var/tmp/diff_new_pack.C15158/_new 2007-07-27 15:38:24.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package kdump-helpers (Version 0.2.3)
+# spec file for package kdump-helpers (Version 0.2.4)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -13,8 +13,8 @@
Name: kdump-helpers
License: GPL v2 or later
BuildRequires: libelf0-devel zlib-devel
-Version: 0.2.3
-Release: 3
+Version: 0.2.4
+Release: 1
Requires: curl openssh
Summary: Helper script for kexec-tools
Group: System/Kernel
@@ -80,6 +80,10 @@
/lib/mkinitrd/boot/02-keyboard-blink.sh
%changelog
+* Fri Jul 27 2007 - bwalle@suse.de
+- update to 0.2.4 (#302257)
+ o implement KDUMP_KEEP_OLD_DUMPS = -2 for deleting all dumps
+ (except the latest, which is saved afterwards
* Mon Jul 02 2007 - tiwai@suse.de
- changed from libelf to libelf0-devel in buildrequires.
* Mon Jun 18 2007 - bwalle@suse.de
++++++ kdump-helpers-0.2.3.tar.bz2 -> kdump-helpers-0.2.4.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/kdump-helpers-0.2.3/ChangeLog new/kdump-helpers-0.2.4/ChangeLog
--- old/kdump-helpers-0.2.3/ChangeLog 2007-06-14 23:41:14.000000000 +0200
+++ new/kdump-helpers-0.2.4/ChangeLog 2007-07-27 14:35:35.000000000 +0200
@@ -1,3 +1,9 @@
+2007-07-27 Bernhard Walle
+
+ * implement KDUMP_KEEP_OLD_DUMPS = -2 for deleting all dumps
+ (except the latest, which is saved afterwards)
+ * strip 'file:///' in kdump-cleanup_dumps
+
2007-06-14 Bernhard Walle
* modify the NFS URL to not separate share and path since this is not
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/kdump-helpers-0.2.3/scripts/kdump-cat_progress new/kdump-helpers-0.2.4/scripts/kdump-cat_progress
--- old/kdump-helpers-0.2.3/scripts/kdump-cat_progress 2007-06-14 11:58:14.000000000 +0200
+++ new/kdump-helpers-0.2.4/scripts/kdump-cat_progress 2007-07-27 12:51:14.000000000 +0200
@@ -19,7 +19,7 @@
use Getopt::Long;
-my $VERSION = "0.2.3";
+my $VERSION = "0.2.4";
my $BLOCKSIZE = 1024;
my $PROGRESS_INTERVAL = 1; # seconds
my $PROGRESS_LOOPS = 50;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/kdump-helpers-0.2.3/scripts/kdump-cleanup_dumps new/kdump-helpers-0.2.4/scripts/kdump-cleanup_dumps
--- old/kdump-helpers-0.2.3/scripts/kdump-cleanup_dumps 2007-06-06 15:57:47.000000000 +0200
+++ new/kdump-helpers-0.2.4/scripts/kdump-cleanup_dumps 2007-07-27 14:40:14.000000000 +0200
@@ -69,15 +69,22 @@
# exceeds $KDUMP_KEEP_OLD_DUMPS
purge_old_dumps()
{
+ local keep_old_dumps=$KDUMP_KEEP_OLD_DUMPS
+
+ # -2 (delete all dumps) means logic 0 here
+ if [ $keep_old_dumps -eq -2 ] ; then
+ keep_old_dumps=0
+ fi
+
dirs=`ls -d $KDUMP_SAVEDIR/*-*-*-*:* 2>/dev/null | sort`
numdirs=`echo $dirs | wc -w`
for d in $dirs; do
- if [ $numdirs -le $KDUMP_KEEP_OLD_DUMPS ]; then
- break;
- fi
- echo " Expiring old dump $d"
- rm -rf $d
- numdirs=`expr $numdirs - 1`
+ if [ $numdirs -le $keep_old_dumps ]; then
+ break;
+ fi
+ echo " Expiring old dump $d"
+ rm -rf $d
+ numdirs=`expr $numdirs - 1`
done
}
@@ -115,6 +122,8 @@
exit 1
fi
+KDUMP_SAVEDIR=$($KDUMP_URL_PARSER --path $KDUMP_SAVEDIR)
+
if [ "$protocol" = "file" ] ; then
#
# clean old stuff
@@ -124,7 +133,9 @@
exit 1
fi
- if [ $KDUMP_KEEP_OLD_DUMPS -gt 0 ]; then
+ # special value 0 is used for "do nothing" and -1 is reserved
+ if [ $KDUMP_KEEP_OLD_DUMPS -gt 0 \
+ -o $KDUMP_KEEP_OLD_DUMPS -lt -1 ]; then
purge_old_dumps
fi
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/kdump-helpers-0.2.3/scripts/kdump-copy_progress new/kdump-helpers-0.2.4/scripts/kdump-copy_progress
--- old/kdump-helpers-0.2.3/scripts/kdump-copy_progress 2007-06-14 11:58:14.000000000 +0200
+++ new/kdump-helpers-0.2.4/scripts/kdump-copy_progress 2007-07-27 12:51:14.000000000 +0200
@@ -20,7 +20,7 @@
use POSIX ":sys_wait_h";
use Getopt::Long;
-my $VERSION = "0.2.3";
+my $VERSION = "0.2.4";
###############################################################################
# Outputs usage information
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/kdump-helpers-0.2.3/scripts/kdump-url_parser new/kdump-helpers-0.2.4/scripts/kdump-url_parser
--- old/kdump-helpers-0.2.3/scripts/kdump-url_parser 2007-06-14 11:58:14.000000000 +0200
+++ new/kdump-helpers-0.2.4/scripts/kdump-url_parser 2007-07-27 12:51:14.000000000 +0200
@@ -19,7 +19,7 @@
use Getopt::Long;
-my $VERSION = "0.2.3";
+my $VERSION = "0.2.4";
my %ALIASES = (
'smb' => 'cifs',
'scp' => 'ssh'
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/kdump-helpers-0.2.3/.version new/kdump-helpers-0.2.4/.version
--- old/kdump-helpers-0.2.3/.version 2007-06-14 11:58:14.000000000 +0200
+++ new/kdump-helpers-0.2.4/.version 2007-07-27 12:51:14.000000000 +0200
@@ -1 +1 @@
-0.2.3
\ No newline at end of file
+0.2.4
\ No newline at end of file
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org