[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Exact matches in files in control data format.



* Charles Plessy <plessy@debian.org>, 2013-02-27, 23:00:
Using grep-dctrl, I tried the following command (with contortions to avoid the po directory and the README).

   find . -maxdepth 1 -type f |
     xargs grep -l '^Task:' |
     xargs grep-dctrl --exact-match -FSection l10n \
                      --and \
                      --exact-match -FEnhances desktop \
                      -sTask -n

Unfortulately, this only returns me the tasks that enhance the desktop task and nothing else, like in the following.

   Task: british-desktop
   Test-lang: en_GB
   Enhances: desktop
   Section: l10n
   Key:
     task-british-desktop

However, if I relax the search, I also get tasks that enhance gnome-desktop, like the following:

   Task: japanese-gnome-desktop
   Enhances: gnome-desktop, japanese-desktop
   Section: l10n
   Key:
     task-japanese-gnome-desktop

Does anybody know a workaround ?

You probably want --whole-pkg instead of --exact-match. (But beware that --whole-pkg implies -e.)

See also #383921.

--
Jakub Wilk


Reply to: