From da64ce253a6f7c94c7e9a6ac2ed3872c8e83a627 Mon Sep 17 00:00:00 2001 From: misc Date: Mon, 16 Aug 2010 23:42:01 +0000 Subject: - fix warning : - default value for monthly, so there is no error for "unitialized value" - do not count the number of time a line is removed, as we do not really use the value ( since the 2nd part of the conditional take care of this ) git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@270574 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94 --- draksnapshot-config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'draksnapshot-config') diff --git a/draksnapshot-config b/draksnapshot-config index 546187e..6faf99a 100755 --- a/draksnapshot-config +++ b/draksnapshot-config @@ -49,6 +49,7 @@ my %default_values = ( "hourly" => 6, "daily" => 7, "weekly" => 4, + "monthly" => "", ); my ($backup_list, $exclude_list) = map { @@ -302,7 +303,7 @@ sub save_keyword { undef $_; $removed++; } - if ($removed == 1 && !$done) { + if ($removed && !$done) { $done++; $_ .= $new_val; } -- cgit v1.2.1