sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 875d1b0305f0dc404909907574242ac1740f6426
parent ea4fc6a196202a7f69f66d9a720b3d645d8dc7fb
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 18 Feb 2018 15:46:49 +0100

sfeed_update: revert more merge logic

this makes sure the sort order of the initial feed sync works again.

Diffstat:
Msfeed_update | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/sfeed_update b/sfeed_update @@ -89,11 +89,10 @@ feed() { if [ -e "${sfeedfile}" ]; then merge "${sfeedfile}" "${tmpfeedfile}" > "${sfeedfilenew}" - # append new entries to feed file. - cat "${sfeedfilenew}" >> "${sfeedfile}" - rm -f "${sfeedfilenew}" + # overwrite old file with updated file + mv "${sfeedfilenew}" "${sfeedfile}" else - mv "${tmpfeedfile}" "${sfeedfile}" + merge "/dev/null" "${tmpfeedfile}" > "${sfeedfile}" fi fi) & }