From 91c85b10911c03b24ec15df4f8b48236563e9c35 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Tue, 12 Mar 2013 22:47:43 -0400 Subject: [PATCH] RSS was resulting in cref error duplicates; suppressing --- repo2html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/repo2html b/repo2html index 8534052..8ab5ad9 100755 --- a/repo2html +++ b/repo2html @@ -111,10 +111,11 @@ export cref_errlog="$cref_errlog_first" >"$cref_errlog" # pass commit list to the HTML and RSS processors (cache list to disk for -# reference and further processing) +# reference and further processing); note that we clear the cref_errlog for the +# RSS feed so that we do not get duplicates listcache=.list "$repotype"/list | tee \ - >( ./rss "$repotype" "$url_root" "$rss_count" \ + >( cref_errlog= ./rss "$repotype" "$url_root" "$rss_count" \ > "$path_out/rss.xml" \ 2> >( _rssout ) ) \ @@ -122,7 +123,7 @@ listcache=.list | ./processor "$repotype" "$path_out" 2> >( _htmlout ) # re-process cref errors (but only once; any errors at this point will be -# considered to be problem refs) +# considered to be problem refs) TODO: RSS export cref_errlog=.cref-bad >"$cref_errlog" grep -f<( sed 's/^/\^/' "$cref_errlog_first" ) "$listcache" \