From e0ef1d9b3dc46774aec541967235b5d011f7e6de Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 7 Oct 2008 09:33:33 +0000 Subject: (save_keyword) if keyword already exists but is commented, uncomment it & set it git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@247864 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94 --- draksnapshot-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'draksnapshot-config') diff --git a/draksnapshot-config b/draksnapshot-config index ebb7f4b..4f94990 100755 --- a/draksnapshot-config +++ b/draksnapshot-config @@ -310,7 +310,7 @@ sub save_keyword { my ($removed, $done); my $new_val = join('', map { "$_\n" } @values); substInFile { - if (/^$keyword/) { + if (/^$keyword/ || /^#$keyword/ && !$removed) { undef $_; $removed++; } -- cgit v1.2.1