[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Quilt-dev] [patch 6/7] Exit with an error when diffs retcode=2 (err
From: |
Martin Quinson |
Subject: |
Re: [Quilt-dev] [patch 6/7] Exit with an error when diffs retcode=2 (error) on patch |
Date: |
Mon, 30 Dec 2013 10:50:01 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Dec 30, 2013 at 08:52:20AM +0100, Raphael Hertzog wrote:
> On Sun, 29 Dec 2013, Martin Quinson wrote:
> > I took all of your suggestions and added a small test case. It does
> > not test what happens with binary diffs because I could not think of
> > how to generate a binary file in a portable manner, but uses chmod -r.
>
> Maybe something like this ?
>
> printf "\x02\x00\x01" >binary
>
> I don't know if that construct is portable, but printf should be.
That's a good idea! And yes, it is portable, <side_note>as we use
printf for every message that must be translated, as in
printf $"File %s not found\n" "$tarball"
If we do $"File $tarball not found\n", the filename is expended before
we look into translation catalog, defeating the lookup.
<side_note>it is not portable, but we do depend on bash</side_note>
</side note>
But unfortunately, I fail to put your idea into practice because I
fail to get the right parsing in the test file. If the test file reads
$ printf "\x02\x00\x01" > test
I get x02x00x01 in the diff. I tried several combination, in vain.
Jean, you just rewrote the main loop and variable substitution parts
of test/run. Do you have an idea of how to fix that too, please?
Thanks for your time,
Mt
--
L'ensemble des personnes ayant un nombre d'Erdős infini est dense dans la
population.
- [Quilt-dev] [patch 0/7] Some more patches from Debian, martin . quinson, 2013/12/21
- [Quilt-dev] [patch 1/7] allow mail command to grab the mail title from dep3 formalism, martin . quinson, 2013/12/21
- [Quilt-dev] [patch 2/7] verbose error message when the serie file does not exist, martin . quinson, 2013/12/21
- [Quilt-dev] [patch 3/7] setup dont obey the settings of any englobing .pc, martin . quinson, 2013/12/21
- [Quilt-dev] [patch 4/7] Informative message when using graph without graphviz, martin . quinson, 2013/12/21
- [Quilt-dev] [patch 6/7] Exit with an error when diffs retcode=2 (error) on patch, martin . quinson, 2013/12/21
[Quilt-dev] [patch 5/7] unset GREP_OPTIONS at startup, martin . quinson, 2013/12/21
[Quilt-dev] [patch 7/7] add --select option to mail command, martin . quinson, 2013/12/21