Groups | Search | Server Info | Login | Register
Groups > alt.os.linux > #80341
| From | marrgol <marrgol@address.invalid> |
|---|---|
| Newsgroups | alt.os.linux |
| Subject | Re: patch command not work |
| Date | 2024-08-29 12:08 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <vaphbc$3tntc$1@dont-email.me> (permalink) |
| References | <vamud2$3eld1$1@dont-email.me> <van5jp$3eoh2$1@dont-email.me> <vanc8o$3gn7k$1@dont-email.me> <vann41$3hajf$1@dont-email.me> <vapca7$3tepm$1@dont-email.me> |
On 2024-08-29 at 10:42 alex wrote: > $ pwd > /tmp/tmp.YI0xO6M46g > > $ patch --dry-run < patched/file.patch > checking file file > > and so far so good, but > > $ (cd / && patch --dry-run -p1 < /tmp/tmp.YI0xO6M46g/patched/file.patch) > checking file tmp/tmp.YI0xO6M46g/patched/file > Reversed (or previously applied) patch detected! Assume -R? [n] > Apply anyway? [n] > Skipping patch. > 1 out of 1 hunk ignored > > $ (cd / && patch --dry-run -p0 < /tmp/tmp.YI0xO6M46g/patched/file.patch) > checking file /tmp/tmp.YI0xO6M46g/patched/file > Reversed (or previously applied) patch detected! Assume -R? [n] > Apply anyway? [n] > Skipping patch. > 1 out of 1 hunk ignored That's correct -- based on the contents of /tmp/tmp.YI0xO6M46g/patched/file.patch 'patch' chooses file /tmp/tmp.YI0xO6M46g/patched/file to be patched but, as you had shown in your original post, it is already patched. Replace 'PATCHED' with 'BUGGED' in /tmp/tmp.YI0xO6M46g/patched/file or restore /tmp/tmp.YI0xO6M46g/bugged/file, which you moved, and try again. You really should read the documentation -- for a start run command "info diffutils 'merging with patch'" locally or visit: https://www.gnu.org/software/diffutils/manual/html_node/Merging-with-patch.html
Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar
patch command not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2024-08-28 12:33 +0200
Re: patch command not work marrgol <marrgol@address.invalid> - 2024-08-28 14:36 +0200
Re: patch command not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2024-08-28 16:29 +0200
Re: patch command not work marrgol <marrgol@address.invalid> - 2024-08-28 19:34 +0200
Re: patch command not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2024-08-29 10:42 +0200
Re: patch command not work "J.O. Aho" <user@example.net> - 2024-08-29 12:05 +0200
Re: patch command not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2024-08-29 15:37 +0200
Re: patch command not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2024-08-31 10:05 +0200
Re: patch command not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2024-08-31 10:24 +0200
Re: patch command not work marrgol <marrgol@address.invalid> - 2024-08-31 13:37 +0200
Re: patch command not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2024-08-31 15:09 +0200
Re: patch command not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2024-09-02 09:24 +0200
Re: patch command not work marrgol <marrgol@address.invalid> - 2024-09-02 18:41 +0200
Re: patch command not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2024-09-03 11:22 +0200
Re: patch command not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2024-09-06 09:08 +0200
Re: patch command not work marrgol <marrgol@address.invalid> - 2024-08-29 12:08 +0200
Re: patch command not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2024-08-29 15:48 +0200
csiph-web