Browse Source

- Add "force" test script contributed by Free Ekanayaka. This allows

adding Test-force lines to tasks that force them to be installed,
      skipped, marked, or shown, without needing to write any code,
      and may be useful for CDDs. Closes: #275303
tags/2.25
Joey Hess 16 years ago
parent
commit
69a6e58617
2 changed files with 29 additions and 0 deletions
  1. +4
    -0
      debian/changelog
  2. +25
    -0
      tests/force

+ 4
- 0
debian/changelog View File

@@ -19,6 +19,10 @@ tasksel (2.25) UNRELEASED; urgency=low
Closes: #292936
- Look for desc files in /usr/local/share/tasksel too. Closes: #286170
- Replace mozilla with firefox in desktop task. Closes: #282166
- Add "force" test script contributed by Free Ekanayaka. This allows
adding Test-force lines to tasks that force them to be installed,
skipped, marked, or shown, without needing to write any code,
and may be useful for CDDs. Closes: #275303
* Kęstutis Biliūnas
- Added openoffice.org-l10n-lt to lithuanian-desktop task.
- Commented out kde-i18n-lt as the Lithuanian language currently is


+ 25
- 0
tests/force View File

@@ -0,0 +1,25 @@
#!/bin/sh
#
# Simple test script to automatically install/skip/mark/show tasks.
#
# To enable this test insert your tasks stanza a keyword like:
#
# Test-force: mark
#
case "$2" in
install)
exit 0 # do not display, but do install task
;;
skip)
exit 1 # do not display task
;;
mark)
exit 2 # display task, marked for installation
;;
show)
exit 3 # display task, not marked for installation
;;
*)
exit 1 # unknown value, skip the task
;;
esac

Loading…
Cancel
Save