Browse Source

Remove unused support for Packages: task-fields

tags/3.10
Bastian Blank 9 years ago
parent
commit
3d124bb55e
2 changed files with 1 additions and 20 deletions
  1. +1
    -0
      debian/changelog
  2. +0
    -20
      tasksel.pl

+ 1
- 0
debian/changelog View File

@@ -45,6 +45,7 @@ tasksel (3.10) UNRELEASED; urgency=low

[ Bastian Blank ]
* Remove manual task.
* Remove unused support for Packages: task-fields.

-- Christian Perrier <bubulle@debian.org> Sun, 25 Mar 2012 14:52:49 +0200



+ 0
- 20
tasksel.pl View File

@@ -206,26 +206,6 @@ sub task_packages {
if (! defined $task->{packages}) {
# only key
}
elsif ($task->{packages} eq 'task-fields') {
# task-fields method is built-in for speed and to support
# aptitude task definitions
if ($aptitude_tasks) {
return '~t^'.$task->{task}.'$';
}
else {
local $/="\n\n";
open (AVAIL, "apt-cache dumpavail|");
while (<AVAIL>) {
if (/^Task: (.*)/m) {
my @tasks=split(", ", $1);
if (grep { $_ eq $task->{task} } @tasks) {
$list{$1}=1 if /^Package: (.*)/m;
}
}
}
close AVAIL;
}
}
elsif ($task->{packages} eq 'standard') {
# standard method is built in since it cannot easily be
# implemented externally.


Loading…
Cancel
Save