Description: Bind new (multiarch) libdpkg
Author: Iain Lane <laney@ubuntu.com>
Bug-Debian: http://bugs.debian.org/649518
Bug-Ubuntu: https://launchpad.net/bugs/893309
Forwarded: http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=20;filename=0001-Update-to-new-multiarch-libdpkg-API-in-1.16.2.patch;att=1;bug=649518

--- haskell-dpkg-0.0.1.orig/Debian/Dpkg/Types.hsc
+++ haskell-dpkg-0.0.1/Debian/Dpkg/Types.hsc
@@ -56,8 +56,8 @@ import Data.ByteString as BS
 #opaque_t struct pkgiterator
 
 #starttype struct pkginfo
-#field next , Ptr <pkginfo>
-#field name , CString
+#field set , Ptr <pkgset>
+#field arch_next , Ptr <pkginfo>
 #field want , <pkgwant>
 #field eflag , <pkgeflag>
 #field status , <pkgstatus>
@@ -71,6 +71,12 @@ import Data.ByteString as BS
 #field clientdata , Ptr <perpackagestate>
 #stoptype
 
+#starttype struct pkgset
+#field next , Ptr <pkgset>
+#field name , CString
+#field pkg , <pkginfo>
+#stoptype
+
 #integral_t enum dpkg_msg_type
 
 #starttype struct dpkg_error
