View Single Post
pichlo's Avatar
Posts: 6,453 | Thanked: 20,983 times | Joined on Sep 2012 @ UK
#1794
Originally Posted by Markkyboy View Post
Anyone see where I'm going wrong?
Yes!

It is now crystal clear that we were talking about the goat whilst you were talking about the cart. It is also possible that you might be trying to push Patchmanager beyond its limits.

Perhaps it would help if you first tried to explain what you wanted to achieve. By the looks of it, you are trying to replace one file with another. This is not what unified_diff.patch is for: it is for replacing the files content of a text file.

For example, you have a file containing this text:

Code:
Now is the time
For all good men
To come to the aid
Of the party.
You want to change it to:

Code:
Now is the time
For all good men
To come to the aid
Of their country.
The patch file would look something like this (made up by hand, I did not bother creating and diffing the files):

Code:
--- /original/file/name
+++ /patched/file/name
@@ -4,1 +4,1 @@
- Of the party.
+ Of their country.
Meaning, "remove one line from line:4, add one line from line 4", with providing the contents of those removed and added lines.

A unified diff can contain lists of differences for multiple files, all following a similar format. Have you done some background reading and/or checked any existing patches as I suggested?

In your case, /usr/share/fonts/roboto is a directory, not a file. A unified diff cannot work. Perhaps you meant something like:

Code:
--- /usr/share/fonts/roboto/Roboto-Light.ttf
+++ /usr/share/fonts/roboto/Roboto-Light.ttf
(list of differences in /usr/share/fonts/roboto/Roboto-Light.ttf)

--- /usr/share/fonts/roboto/Roboto-Medium.ttf
+++ /usr/share/fonts/roboto/Roboto-Medium.ttf
(list of differences in /usr/share/fonts/roboto/Roboto-Medium.ttf)

...etc
Or perhaps you meant something completely different. An explanation of what you are trying to achieve would be welcome.
__________________
Русский военный корабль, иди нахуй!
 

The Following 3 Users Say Thank You to pichlo For This Useful Post: