Browse Source

Completely remove support for aptitude task syntax

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

+ 1
- 0
debian/changelog View File

@@ -46,6 +46,7 @@ tasksel (3.10) UNRELEASED; urgency=low
[ Bastian Blank ]
* Remove manual task.
* Remove unused support for Packages: task-fields.
* Completely remove support for aptitude task syntax.

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



+ 2
- 6
tasksel.pl View File

@@ -189,12 +189,8 @@ sub task_installed {
}

# Given task hash, returns a list of all available packages in the task.
# If the aptitude_tasks parameter is true, then it does not expand tasks
# that aptitude knows about, and just returns aptitude task syntax for
# those.
sub task_packages {
my $task=shift;
my $aptitude_tasks=shift;
my %list;

@@ -596,11 +592,11 @@ sub main {
if (@tasks_install || @tasks_remove) {
my @args;
foreach my $task (@tasks_remove) {
push @args, map { "$_-" } task_packages($task, 0);
push @args, map { "$_-" } task_packages($task);
task_script($task->{task}, "prerm");
}
foreach my $task (@tasks_install) {
push @args, task_packages($task, 1);
push @args, task_packages($task);
task_script($task->{task}, "preinst");
}
my $ret=run(@aptitude, "-y", "install", @args);


Loading…
Cancel
Save