The following commit has been merged in the master branch:
commit 35b93f6961025b4468c00a406a0e3dcfcea184c1
Author: Guillem Jover <[EMAIL PROTECTED]>
Date: Sat Jul 26 07:14:54 2008 +0300
libdpkg: Do not set the type to 'field' in parseformat
This information is already set in parsefield.
diff --git a/ChangeLog b/ChangeLog
index 1859c38..220b3f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-26 Guillem Jover <[EMAIL PROTECTED]>
+
+ * lib/showpkg.c (parseformat): Do not set cur->type to field, as
+ that's set in parsefield.
+
2008-07-22 Guillem Jover <[EMAIL PROTECTED]>
* src/Makefile.am (dpkg_SOURCES): Add 'pkg-list.c'.
diff --git a/lib/showpkg.c b/lib/showpkg.c
index c51abb9..a255531 100644
--- a/lib/showpkg.c
+++ b/lib/showpkg.c
@@ -158,7 +158,7 @@ struct lstitem* parseformat(const char* fmt) {
freeformat(head);
return NULL;
}
- cur->type=field;
+
if (!parsefield(cur, fmt+2, fmtend-1)) {
freeformat(head);
return NULL;
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]