#! /bin/sh /usr/share/dpatch/dpatch-run
## 10_namespace-support.dpatch by Iain Lane <laney@ubuntu.com>
##
## All lines beginning with `## DP:' are a description of the patch.
# Description: Crash with interfaces with the same name but in different namespaces
# Origin: other
# Bug: https://bugs.launchpad.net/ndesk-dbus/+bug/377672

@DPATCH@
diff -urNad ndesk-dbus-0.6.0~/src/TypeImplementer.cs ndesk-dbus-0.6.0/src/TypeImplementer.cs
--- ndesk-dbus-0.6.0~/src/TypeImplementer.cs	2007-10-11 21:01:11.000000000 +0100
+++ ndesk-dbus-0.6.0/src/TypeImplementer.cs	2009-10-15 22:30:15.462877986 +0100
@@ -34,7 +34,7 @@
 
 			InitHack ();
 
-			TypeBuilder typeB = modB.DefineType (declType.Name + "Proxy", TypeAttributes.Class | TypeAttributes.Public, typeof (BusObject));
+			TypeBuilder typeB = modB.DefineType (declType.FullName + "Proxy", TypeAttributes.Class | TypeAttributes.Public, typeof (BusObject));
 
 			Implement (typeB, declType);
 
