Browse Source

Support standard task

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

+ 1
- 0
debian/changelog View File

@@ -51,6 +51,7 @@ tasksel (3.10) UNRELEASED; urgency=low
- Force installation of recommends even if turned off.
- Force auto-removal of packages.
- Don't longer remove packages. (closes: #579522)
* Support standard task with apt-get.

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



+ 14
- 3
tasksel.pl View File

@@ -220,9 +220,20 @@ sub task_packages {
# only key
}
elsif ($task->{packages} eq 'standard') {
# standard method is built in since it cannot easily be
# implemented externally.
return "~pstandard", "~prequired", "~pimportant";
while (my ($package, $info) = each(info_avail())) {
my ($priority, $section) = ($info->{priority}, $info->{section});
if (($priority eq 'required' ||
$priority eq 'important' ||
$priority eq 'standard') &&
# Exclude non-main and lib packages
$section !~ /^lib|\// &&
# Exclude packages starting with lib
$package !~ /^lib/ &&
# Exclude already installed packages
!package_installed($package)) {
$list{$package} = 1;
}
}
}
else {
# external method


Loading…
Cancel
Save