Browse Source

* Add --logfile and --logstderr options.

tags/2.35
Joey Hess 15 years ago
parent
commit
89459a8b0a
3 changed files with 19 additions and 4 deletions
  1. +3
    -2
      debian/changelog
  2. +8
    -2
      tasksel.pl
  3. +8
    -0
      tasksel.pod

+ 3
- 2
debian/changelog View File

@@ -1,8 +1,9 @@
tasksel (2.35) UNRELEASED; urgency=low
tasksel (2.35) unstable; urgency=low

* Set section to admin to match overrides.
* Add --logfile and --logstderr options.

-- Joey Hess <joeyh@debian.org> Sun, 4 Dec 2005 14:05:55 -0500
-- Joey Hess <joeyh@debian.org> Sun, 4 Dec 2005 16:10:33 -0500

tasksel (2.34) unstable; urgency=low



+ 8
- 2
tasksel.pl View File

@@ -334,6 +334,8 @@ tasksel [options]
--list-tasks list tasks that would be displayed and exit
--task-packages list available packages in a task
--task-desc returns the description of a task
--logfile file send apt output to the file
--logstderr send apt output to stderr
});
}

@@ -342,7 +344,8 @@ sub getopts {
my %ret;
Getopt::Long::Configure ("bundling");
if (! GetOptions(\%ret, "test|t", "new-install", "list-tasks",
"task-packages=s@", "task-desc=s")) {
"task-packages=s@", "task-desc=s", "logfile=s",
"logstderr")) {
usage();
exit(1);
}
@@ -499,7 +502,10 @@ sub main {
$aptitude="aptitude";
}
elsif (-x "/usr/bin/debconf-apt-progress") {
$aptitude="debconf-apt-progress -- aptitude";
$aptitude="debconf-apt-progress";
$aptitude.=" --logfile $options{logfile}" if exists $options{logfile};
$aptitude.=" --logstderr" if exists $options{logstderr};
$aptitude.=" -- aptitude";
}
else {
$aptitude="aptitude";


+ 8
- 0
tasksel.pod View File

@@ -42,6 +42,14 @@ Note that this option may be given more than once.

outputs the extended description of the given task

=item B<--logfile> file

Send the normal output from apt to the given file.

=item B<--logstderr>

Send the normal output from apt to stderr.

=back

=head1 SEE ALSO


Loading…
Cancel
Save