[Bug 502076] [NEW] bzr-handle-patch doesn't like patch files containing "diff" lines before each patch

Michael Bienia michael at bienia.de
Fri Jan 1 14:27:43 UTC 2010


Public bug reported:

Binary package hint: bzr-gtk

As bzr-handle-patch registers itself for .patch files, Firefox offers to
use it when I click on a .patch as can be found on the Debian PTS (links
to the patches on http://patches.ubuntu.com). As I regularly use these
patches to check all current Ubuntu delta when sponsoring merges, bzr-
handle-patch isn't really helpful (as the standard application) as it
claims broken patch files and crashes:

Malformed patch header.  No orig name
'diff -pruN 1.2.4-1/debian/changelog 1.2.4-1ubuntu1/debian/changelog\n'

The patch itself looks as following:

diff -pruN 1.2.4-1/debian/changelog 1.2.4-1ubuntu1/debian/changelog
--- 1.2.4-1/debian/changelog    2009-06-25 21:20:52.000000000 +0100
+++ 1.2.4-1ubuntu1/debian/changelog     2009-06-25 21:15:43.000000000 +0100
@@ -1,3 +1,11 @@
[...]

If I remove the offending "diff" lines from the whole patch, bzr-handle-patch can open it then.
As creating patch files with "diff -ruN" (or even "diff -pruN") is pretty common, bzr-handle-patch should cope with them (if it registers itself for those files).

** Affects: bzr-gtk (Ubuntu)
     Importance: Undecided
         Status: New

-- 
bzr-handle-patch doesn't like patch files containing "diff" lines before each patch
https://bugs.launchpad.net/bugs/502076
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list