Browse Source

Fix enhances handling in the case where a task enhances another

task that is not available, or not installable. The enhancing task 
should not be installed in this case. Closes:# 481255
tags/2.74
Joey Hess 13 years ago
parent
commit
2c1271bf34
2 changed files with 14 additions and 0 deletions
  1. +5
    -0
      debian/changelog
  2. +9
    -0
      tasksel.pl

+ 5
- 0
debian/changelog View File

@@ -27,6 +27,11 @@ tasksel (2.74) UNRELEASED; urgency=low
[ Eddy Petri?or ]
* added iceweasel-l10n-ro to the romanian-desktop task

[ Joey Hess ]
* Fix enhances handling in the case where a task enhances another
task that is not available, or not installable. The enhancing task
should not be installed in this case. Closes:# 481255

-- Jacobo Tarrio <jtarrio@debian.org> Sun, 02 Mar 2008 23:57:54 +0000

tasksel (2.73) unstable; urgency=high


+ 9
- 0
tasksel.pl View File

@@ -523,6 +523,15 @@ sub main {
$enhances_needswork=0;
foreach my $task (grep { ! $_->{_install} && exists $_->{enhances} &&
length $_->{enhances} } @tasks) {
my %tasknames = map { $_->{task} => $_ } @tasks;
my @deps=map { $tasknames{$_} } split ", ", $task->{enhances};

if (grep { $_ eq undef } @deps) {
# task enhances an unavailable or
# uninstallable task
next;
}

my @deps=list_to_tasks($task->{enhances}, @tasks);
if (@deps) {
my $orig_state=$task->{_install};


Loading…
Cancel
Save