Browse Source

* Use debconf-apt-progress during installs (except if the user chooses

manual selection), to get a fancy progress bar and completly limit output
  when run inside debconf to debconf protocol output.
tags/2.34
Joey Hess 16 years ago
parent
commit
9eda39b628
2 changed files with 14 additions and 7 deletions
  1. +4
    -3
      debian/changelog
  2. +10
    -4
      tasksel.pl

+ 4
- 3
debian/changelog View File

@@ -8,8 +8,9 @@ tasksel (2.34) UNRELEASED; urgency=low
possible to avoid outputting non-debconf protocol to stdout, including:
- Don't display the manual task.
- Don't clear the screen before running aptitude.
Before this can be used in a first stage debian install, we'll still need
to deal with dpkg/apt output.
* Use debconf-apt-progress during installs (except if the user chooses
manual selection), to get a fancy progress bar and completly limit output
when run inside debconf to debconf protocol output.

[ Translations of tasks ]
* French updated
@@ -42,7 +43,7 @@ tasksel (2.34) UNRELEASED; urgency=low
* Galician updated
* Spanish updated

-- Jacobo Tarrio <jtarrio@allenta.com> Wed, 30 Nov 2005 11:43:18 +0100
-- Joey Hess <joeyh@debian.org> Sat, 3 Dec 2005 18:13:29 -0500

tasksel (2.33) unstable; urgency=low



+ 10
- 4
tasksel.pl View File

@@ -527,17 +527,23 @@ sub main {
}
}
else {
# Manaul selection and task installs, as best
# aptitude can do it currently.
my $aptitude;
if ($manual_selection) {
# Manaul selection and task installs, as best
# aptitude can do it currently. Disables use of
# debconf-apt-progress.
unshift @aptitude_install, "--visual-preview";
$aptitude="aptitude";
}
else {
$aptitude="debconf-apt-progress -- aptitude";
}
if ($options{test}) {
print "aptitude --without-recommends -y install ".join(" ", @aptitude_install)."\n";
print "$aptitude --without-recommends -y install ".join(" ", @aptitude_install)."\n";
}
else {
my $ret=system("aptitude", "--without-recommends", "-y", "install", @aptitude_install) >> 8;
my $ret=system(split(' ', $aptitude), "--without-recommends", "-y", "install", @aptitude_install) >> 8;
if ($ret != 0) {
error gettext("aptitude failed");
}


Loading…
Cancel
Save