Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
This gets rid of the silly bit fiddling macros.
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Until now, grep-dctrl has used a configuration file to determine which
input file it should use by default. Originally, this was motivated by
a desire not to step too much into the toes of dpkg maintainers - it
allowed the fiction that this package doesn't in fact depend on dpkg's
internal interfaces. Over the last decade, however, this consideration
has became essentially moot, and the status and available files are
effectively public interfaces.
Now, theoretically, this configurability could be in use by someone.
However, the same functionality is available by using shell functions and
shell scripts. I twice called for actual use cases for this feature,
explicitly threatening to remove this feature if nobody stepped up.
Nobody did.
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
For grep-dctrl, this means having -F search for all of the same-name
fields disjunctively. The -s option selects all same-name fields for
printing.
For the other tools, all but the first are ignored.
No string changes, so committing to maint-2.20 for release with 2.20.1.
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
<20111208103543.GA24436@xibalba.demon.co.uk>
|
|
|
|
Since almost all CS vocabulary was removed from manual pages as pointed
in #325169, the only remaining parts seems to be in the program
messages.
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
The original fix for #525525 was a cold-turkey change in behavior.
This caused problems and drew objections. Here, the idea is to
revert that change and add a migration path to it.
An option --ensure-dctrl is added, whose states semantics is to ensure that
the output format is in dctrl format. It will be ignored if -n is also
given, as that deliberately asks for non-dctrl output. In practical terms,
--ensure-dctrl makes the paragraph separator unconditional, as the cold
turkey change (in the absence of -n). The idea is that people who prefer
the new behaviour can set up shell aliases or other similar mechanisms
that use --ensure-dctrl by default.
Another option, --compat is added to allow people who dislike the new
behaviour to make sure that they continue to receive it. A --compat
option will countermand any previous --ensure-dctrl. Thus a user can
put it in a shell alias, which will then continue to deliver the old
semantics even after --ensure-dctrl is made default.
The idea is that eventually --ensure-dctrl will become normal behaviour
and the switch becomes a no-op.
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
|
|
Closes: #596424 reported by myself
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Add to grep-dctrl the new matching mode --whole-pkg / -w. It behaves
as -e (extended regexp matching), but matches over exact package
names, thus avoiding sub-package name matching.
Closes: #383921
Signed-off-by: Stefano Zacchiroli <zack@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
There are some places in the code where it would simplify both the code
and the translations to have message strings be printf-formatted. This
change changes the message function interfaces so that they can take
a variable number of arguments. This required changes at all call sites.
At the same time, the key logic of the message functions is moved out of
the headers, leaving only the "shall we output this" test for inlining.
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Reported by Dan Jacobson <jidanni@jidanni.org>
Signed-off-by: Jon Bernard <jbernard@debian.org>
|
|
Files listed in .gitignore should not list files that are generated in
specific subdirectories. Add them in the ".gitignore" file in that
subdirectory instead.
For example, having "grep-dctrl" in ".gitignore" causes the directory
"grep-dctrl" and all of its contents to be ignored, rather than the
executable which was intended.
Signed-off-by: Jon Bernard <jbernard@debian.org>
|
|
We'll need some sort of mechanism for @exec to affect option
parsing before we can discharge the other part of the report,
cloned as #448277.
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
|
|
where sizeof(int) != sizeof(size_t)
|
|
Closes: #144174 (please provide a --filter-fields option of some sort)
Reported by Yann Dirson <dirson@debian.org>
Merged with #264905 (show all fields except FIELD,FIELD,...)
Reported by Dan Jacobson <jidanni@jidanni.org>
|
|
|