Skip to content

Return an error when aborting due to existing .orig file (fixes #60) - #61

Open
fmarier wants to merge 1 commit into
techtonik:masterfrom
fmarier:issue60
Open

Return an error when aborting due to existing .orig file (fixes #60)#61
fmarier wants to merge 1 commit into
techtonik:masterfrom
fmarier:issue60

Conversation

@fmarier

@fmarierfmarier commented Apr 18, 2019

Copy link
Copy Markdown

Using the same setup as described in #60:

$ ./patch.py --debug working.patch || echo Failed
DEBUG reading working.patch
DEBUG crlf: 0 lf: 5 cr: 0 - file: b.txt hunk: 1
DEBUG - 1 hunks for a.txt
DEBUG total files: 1 total hunks: 1
DEBUG normalize filenames
DEBUG patch type = plain
DEBUG source = a.txt
DEBUG target = b.txt
DEBUG processing 1/1: a.txt
DEBUG hunk no.1 for file a.txt -- is ready to be patched
WARNING can't backup original file to a.txt.orig - aborting
Failed

@fmarier

Copy link
Copy Markdown
Author

That Travis CI failure is unrelated to my change and needs to be fixed with something like graingert@ba64f72.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@fmarier