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
keep-around/43e990ab3f4cc50982f8dbc32e3465ca7c827876
Joey Hess 17 years ago
parent
commit
69a6e58617
  1. 4
      debian/changelog
  2. 25
      tests/force

4
debian/changelog

@ -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
tests/force

@ -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