Your message dated Thu, 31 Dec 2009 18:31:56 +0100
with message-id <[email protected]>
and subject line Re: Bug#262308: report if a patch has been applied
has caused the Debian Bug report #262308,
regarding report if a patch has been applied
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
262308: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=262308
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: patch
Version: 2.5.9-2
Severity: wishlist
It would be nice if patch had an option to report if a patch had
already been applied to a file or files.
Thanks,
Dave
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: LANG=C, LC_CTYPE=C
Versions of packages patch depends on:
ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an
-- no debconf information
--- End Message ---
--- Begin Message ---
Re: David N. Welton 2004-08-02 <[email protected]>
> >>It would be nice if patch had an option to report if a patch had
> >>already been applied to a file or files.
>
> >Maybe I'm misunderstanding something, but:
> >
> >mich...@caemlyn:/tmp$ patch -p0 <foo.diff
> >patching file foo
> >mich...@caemlyn:/tmp$ patch -p0 <foo.diff
> >patching file foo
> >Reversed (or previously applied) patch detected! Assume -R? [n]
> >Apply anyway? [n]
> >Skipping patch.
>
> Sure, but think about scripting this. I want to be able to access
> this information programmatically, and not do it by having to parse
> all that junk.
Hi,
here's upstream's answer on that request:
Di 29 Dez 2009 18:16:10 UTC, Kommentar #1:
Andreas Gruenbacher <agruen>
For patches which don't modify the same file more than once in
conflicting ways, applying a patch with -R --dry-run will succeed when
a patch has been applied already.
It's a deficiency of --dry-run that it doesn't work for arbitrary
input. When the input to patch modifies the same file twice, the order
of those modifications would also have to be reversed when determining
if a patch has already been applied. I have no plans to address the
latter problem.
I'm closing the Debian report as well.
Christoph
--
[email protected] | http://www.df7cb.de/
signature.asc
Description: Digital signature
--- End Message ---