Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
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>
|
|
Closes: #596424 reported by myself
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
Debian Policy allows, in debian/control, lines that start with the
'#'-character. Those lines are treated as comments by Policy, and ignored.
This patch adds parser support for these comments in dctrl-tools.
Unfortunately, it is not possible (without major changes) to ignore
those comments semantically, since dctrl-tools represents paragraphs
and fields as substrings of the input file.
Accordingly, what this patch does is allow the parser to not choke on
comments. Comments found inside a paragraph are left semantically
significant (ie. part of the field body in which they are found),
while comments otside of paragraphs are elided.
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>
|
|
Reported by Dan Jacobson <jidanni@jidanni.org>
Signed-off-by: Jon Bernard <jbernard@debian.org>
|
|
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
|
|
With this new option, join-dctrl solves the following longstanding wishlist item.
Closes: #136097 (grep-dctrl: Merging status and available would be helpful)
Requested by Ben Armstrong <synrg@sanctuary.nslug.ns.ca>.
|
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
- Makefile: new target 'test'
- tester.sh: new file
- tests: new directory
- tests/0001.*: new files - a simple basic test case
- debian/rules: run the test suite (ignoring any failures) at build time
|