Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / lib / tasksel / | server ip : 172.67.156.115 your ip : 172.71.254.234 H O M E |
Filename | /usr/lib/tasksel/filter-tasks |
Size | 1.55 kb |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:52 |
Last modified | 04-Apr-2014 20:58 |
Last accessed | 05-Jul-2025 15:40 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#! /bin/sh
#
# Filter a list of tasks based on whether they are listed in
# tasksel/force-tasks, tasksel/limit-tasks, or tasksel/skip-tasks. We take a
# list of all displayable tasks as arguments. In the output file (first
# argument), we emit a series of lines each of one of these two forms, with
# the same meaning as in Test-new-install:
#
# task-name install
# task-name skip
#
# Tasks that should be shown as normal are omitted.
#
# (Yes, this could be done as part of the new-install test. However, until
# such time as tasksel's core uses debconf, this is very slow because it
# requires starting up debconf once per task.)
set -e
. /usr/share/debconf/confmodule
OUTPUT="$1"
shift
FORCE=
if db_fget tasksel/force-tasks seen && [ "$RET" = true ]; then
db_get tasksel/force-tasks
FORCE="$(echo "$RET" | sed 's/,/ /g')"
fi
LIMIT=
if db_fget tasksel/limit-tasks seen && [ "$RET" = true ]; then
db_get tasksel/limit-tasks
LIMIT="$(echo "$RET" | sed 's/,/ /g')"
fi
SKIP=
if db_fget tasksel/skip-tasks seen && [ "$RET" = true ]; then
db_get tasksel/skip-tasks
SKIP="$(echo "$RET" | sed 's/,/ /g')"
fi
for task; do
for force in $FORCE; do
if [ "$task" = "$force" ]; then
echo "$task install" >> "$OUTPUT"
continue 2
fi
done
for skip in $SKIP; do
if [ "$task" = "$skip" ]; then
echo "$task skip" >> "$OUTPUT"
continue 2
fi
done
if [ "$LIMIT" ]; then
found=0
for limit in $LIMIT; do
if [ "$task" = "$limit" ]; then
found=1
break
fi
done
if [ "$found" = 0 ]; then
echo "$task skip" >> "$OUTPUT"
fi
fi
done
exit 0
#
# Filter a list of tasks based on whether they are listed in
# tasksel/force-tasks, tasksel/limit-tasks, or tasksel/skip-tasks. We take a
# list of all displayable tasks as arguments. In the output file (first
# argument), we emit a series of lines each of one of these two forms, with
# the same meaning as in Test-new-install:
#
# task-name install
# task-name skip
#
# Tasks that should be shown as normal are omitted.
#
# (Yes, this could be done as part of the new-install test. However, until
# such time as tasksel's core uses debconf, this is very slow because it
# requires starting up debconf once per task.)
set -e
. /usr/share/debconf/confmodule
OUTPUT="$1"
shift
FORCE=
if db_fget tasksel/force-tasks seen && [ "$RET" = true ]; then
db_get tasksel/force-tasks
FORCE="$(echo "$RET" | sed 's/,/ /g')"
fi
LIMIT=
if db_fget tasksel/limit-tasks seen && [ "$RET" = true ]; then
db_get tasksel/limit-tasks
LIMIT="$(echo "$RET" | sed 's/,/ /g')"
fi
SKIP=
if db_fget tasksel/skip-tasks seen && [ "$RET" = true ]; then
db_get tasksel/skip-tasks
SKIP="$(echo "$RET" | sed 's/,/ /g')"
fi
for task; do
for force in $FORCE; do
if [ "$task" = "$force" ]; then
echo "$task install" >> "$OUTPUT"
continue 2
fi
done
for skip in $SKIP; do
if [ "$task" = "$skip" ]; then
echo "$task skip" >> "$OUTPUT"
continue 2
fi
done
if [ "$LIMIT" ]; then
found=0
for limit in $LIMIT; do
if [ "$task" = "$limit" ]; then
found=1
break
fi
done
if [ "$found" = 0 ]; then
echo "$task skip" >> "$OUTPUT"
fi
fi
done
exit 0