Stop lying about IDs. Harden dead symlink check.

This commit is contained in:
Brit Butler 2012-08-29 23:36:19 -04:00
parent d3dc6f0c5c
commit da8895a28a
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,8 @@ If RAW is non-nil, write the content without wrapping it in the base template."
(curr (app-path ".curr")))
(ensure-directories-exist new-build)
(run-program "mv ~a ~a" staging new-build)
(if (and (probe-file prev) (equal prev (truename prev)))
; KLUDGE: Is there a better way to portably catch dead symlinks?
(if (and (probe-file prev) (equal prev (ignore-errors (truename prev))))
(delete-file prev)
(cl-fad:delete-directory-and-files (truename prev)))
(when (probe-file curr)

View file

@ -8,7 +8,6 @@
<link href="{$siteroot}"/>
<link type="application/atom+xml" rel="self" href="{$siteroot}/atom.xml"/>
<updated>{$pubdate}</updated>
<id>{$siteroot}@{$pubdate}</id>
<author>
<name>{$author}</name>
</author>