1
0
Fork 0

Corrected issue whereby reprocessing would cause a duplicate index template output

master
Mike Gerwitz 2013-03-15 16:38:13 -04:00
parent 818a595e85
commit dc99621cc1
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 5 additions and 3 deletions

View File

@ -123,11 +123,13 @@ 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) TODO: RSS # considered to be problem refs) TODO: RSS; note that we redirect all output to
# /dev/null so as not to re-output the index template
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" \
| ./processor "$repotype" "$path_out" 2> >( _reout ) | ./processor "$repotype" "$path_out" 2> >( _reout ) \
) >/dev/null
# if any invalid crefs remain, then they're bad # if any invalid crefs remain, then they're bad
[ ! -s "$cref_errlog" ] || { [ ! -s "$cref_errlog" ] || {