patching a file in Vista?

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

I usually patch Drupal files "by hand" becauase I haven't figured out how to do it "correctly" - but I want to learn.

I need to patch the video_youtube.module for authentication.

I tried using Eclipse, but when I tried to open the filename.patch file, I got a prompt from Vista to select a default program. When I selected Eclipse, it opened the file in a new instance of Eclipse, and same with the filename.module file. I tried renaming them with .txt extension, but patch doesn't work, I even changed the filename at the top of the patch to modulefilename.txt ---

I installed patch.exe (GnuWin32) - when I run it, I get a command window but no matter what I type into it, nothing happens. I also tried a Command window, cd to the patch.exe directory, but then when I type in "patch p0 < filename.patch" and Enter I get the error "file not found"

I placed the module and patch files in the bin directory with patch.exe

All the tutorials I found assume that I know how to use the app, but I am stalled at the starting line...

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Did you get this working?

What happens if you enter patch.exe < filename.patch ? There's also a problem with what you're entering above, it should be: patch -p0 < filename.patch it may be looking for a file named p0 which would cause it to fail.

a Padded Cell our articles site!

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

well, I did what I usually do, I made the patch by hand...

I think I entered the commands properly, I was following the documentation, I understand that -p0 is a (sometimes unnecessary) switch.

Next time I need to apply a patch, I'll try again. I have a sneaking feeling it has something to do with Vista...

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.