Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux    |    Getting to be as bloated as Windows!    |    107,822 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 106,404 of 107,822    |
|    marrgol to All    |
|    Re: patch command not work    |
|    29 Aug 24 12:08:43    |
      From: marrgol@address.invalid              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              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca