diff options
| author | Holger Freyther <zecke@selfish.org> | 2007-04-01 17:49:59 +0000 |
|---|---|---|
| committer | Holger Freyther <zecke@selfish.org> | 2007-04-01 17:49:59 +0000 |
| commit | e762cc421306ddca4b75dc284dc25dc514da97a2 (patch) | |
| tree | c0550a9ecd59bd10edd334524ad0cdc35919fd94 /packages/libmrss/files/atom-changes.patch | |
| parent | 703beee4dc3ddb0cefb50c5bef7f0f456e0da505 (diff) | |
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
Diffstat (limited to 'packages/libmrss/files/atom-changes.patch')
| -rw-r--r-- | packages/libmrss/files/atom-changes.patch | 17 |
1 files changed, 17 insertions, 0 deletions
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) |
