From e762cc421306ddca4b75dc284dc25dc514da97a2 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Sun, 1 Apr 2007 17:49:59 +0000 Subject: packages/libmrss: Apply my patches to libmrss (will be send upstream) -Make sure pubDate is always set for ATOM feeds from planets -Bump the library version to 0.17 -Format Atom dates RFC822 compliant --- packages/libmrss/files/atom-changes.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/libmrss/files/atom-changes.patch (limited to 'packages/libmrss/files/atom-changes.patch') diff --git a/packages/libmrss/files/atom-changes.patch b/packages/libmrss/files/atom-changes.patch new file mode 100644 index 0000000000..42f74d00f2 --- /dev/null +++ b/packages/libmrss/files/atom-changes.patch @@ -0,0 +1,17 @@ +Make sure to always set a pubDate + +Index: libmrss-0.17/src/mrss_parser.c +=================================================================== +--- libmrss-0.17.orig/src/mrss_parser.c 2007-03-22 19:40:54.000000000 +0100 ++++ libmrss-0.17/src/mrss_parser.c 2007-03-22 19:44:15.000000000 +0100 +@@ -270,6 +270,10 @@ + && data->version == MRSS_VERSION_ATOM_1_0) + item->pubDate = + __mrss_atom_prepare_date (nxmle_get_string (cur, NULL)); ++ else if (!strcmp(cur->value, "updated" ) && !item->pubDate ++ && data->version == MRSS_VERSION_ATOM_1_0) ++ item->pubDate = ++ __mrss_atom_prepare_date (nxmle_get_string (cur, NULL)); + + /* issued -> pubDate (Atom 0.3) */ + else if (!strcmp (cur->value, "issued") && !item->pubDate) -- cgit v1.2.3