summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-10-07 09:33:33 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-10-07 09:33:33 +0000
commite0ef1d9b3dc46774aec541967235b5d011f7e6de (patch)
tree79c5374e1d8ad8cde4bffef2bbdff3c3bdb6a71d
parentb9a9c1366987aa8342a0c87622fff87a49f140c7 (diff)
downloaddraksnapshot-e0ef1d9b3dc46774aec541967235b5d011f7e6de.tar
draksnapshot-e0ef1d9b3dc46774aec541967235b5d011f7e6de.tar.gz
draksnapshot-e0ef1d9b3dc46774aec541967235b5d011f7e6de.tar.bz2
draksnapshot-e0ef1d9b3dc46774aec541967235b5d011f7e6de.tar.xz
draksnapshot-e0ef1d9b3dc46774aec541967235b5d011f7e6de.zip
(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
-rwxr-xr-xdraksnapshot-config2
1 files changed, 1 insertions, 1 deletions
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++;
}