Просмотр исходного кода

Update triggers documentation to match reality

- The list of triggers is in the second parameter and not in the third.
- The --verbose and --query options for dpkg-trigger have never been
  implemented.
Raphaël Hertzog лет назад: 15
Родитель
Сommit
ec2ebca2e2
1 измененных файлов с 2 добавлено и 6 удалено
  1. 2 6
      doc/triggers.txt

+ 2 - 6
doc/triggers.txt

@@ -185,7 +185,7 @@ away redundant processing.
 In that case, where an interested package has more than one trigger
 and wants to process them differently, the list of triggers can be can
 be examined in a shell script like this:
-   case " $3 " in
+   case " $2 " in
    *" trigger-name-a "*)  process-trigger-a ;;
    esac
 Generally each trigger name should be tested for separately, as the
@@ -338,12 +338,8 @@ A trigger may be activated explicitly with:
    dpkg-trigger [--by-package <package>] <name-of-trigger>
    dpkg-trigger --no-await <name-of-trigger>
 
-The --verbose and --query options will show which packages were
-interested and what the current activation state is, on stdout in
-human- and machine-readable (untranslated) format.  Without any
-options there will be no output to stdout, and none to stderr unless
+There will be no output to stdout, and none to stderr unless
 dpkg-trigger is unable to make a record of the trigger activation.
-With --query no trigger is activated.
 
 NB that in the case of a file trigger the name of the trigger is
 needed, not the name of a file which would match the trigger.