summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-02-15 19:08:29 +0000
committerOlivier Blin <oblin@mandriva.org>2005-02-15 19:08:29 +0000
commit542baadb7374a4afd1d6c6c17438ea87eb91e4f2 (patch)
tree54580d63eeeae24088ade7dc0fccf2f8dda29a68 /perl-install
parent6bc143d880fe9fef836bc5783bf78e917d02fc77 (diff)
downloaddrakx-542baadb7374a4afd1d6c6c17438ea87eb91e4f2.tar
drakx-542baadb7374a4afd1d6c6c17438ea87eb91e4f2.tar.gz
drakx-542baadb7374a4afd1d6c6c17438ea87eb91e4f2.tar.bz2
drakx-542baadb7374a4afd1d6c6c17438ea87eb91e4f2.tar.xz
drakx-542baadb7374a4afd1d6c6c17438ea87eb91e4f2.zip
delete unblacklisted entries from the list
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/standalone/drakids2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/standalone/drakids b/perl-install/standalone/drakids
index f6ce3c00e..06f35d490 100644
--- a/perl-install/standalone/drakids
+++ b/perl-install/standalone/drakids
@@ -95,4 +95,6 @@ sub handle_blacklist {
sub unblacklist {
my @addr = uniq(map { $blacklist->{data}->[$_]->[0] } $blacklist->get_selected_indices);
$activefw->unblacklist($_) foreach @addr;
+ #- delete from the list even if the above calls were unsuccessful
+ @{$blacklist->{data}} = grep { !member($_->[0], @addr) } @{$blacklist->{data}};
}