1
0
Fork 0

RSS was resulting in cref error duplicates; suppressing

master
Mike Gerwitz 2013-03-12 22:47:43 -04:00
parent 35b390dc37
commit 91c85b1091
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 4 additions and 3 deletions

View File

@ -111,10 +111,11 @@ export cref_errlog="$cref_errlog_first"
>"$cref_errlog" >"$cref_errlog"
# pass commit list to the HTML and RSS processors (cache list to disk for # 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 listcache=.list
"$repotype"/list | tee \ "$repotype"/list | tee \
>( ./rss "$repotype" "$url_root" "$rss_count" \ >( cref_errlog= ./rss "$repotype" "$url_root" "$rss_count" \
> "$path_out/rss.xml" \ > "$path_out/rss.xml" \
2> >( _rssout ) 2> >( _rssout )
) \ ) \
@ -122,7 +123,7 @@ listcache=.list
| ./processor "$repotype" "$path_out" 2> >( _htmlout ) | ./processor "$repotype" "$path_out" 2> >( _htmlout )
# re-process cref errors (but only once; any errors at this point will be # 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 export cref_errlog=.cref-bad
>"$cref_errlog" >"$cref_errlog"
grep -f<( sed 's/^/\^/' "$cref_errlog_first" ) "$listcache" \ grep -f<( sed 's/^/\^/' "$cref_errlog_first" ) "$listcache" \