From: Floyd Anderson Date: Sun, 25 Mar 2018 04:37:25 +0000 (+0200) Subject: auto.def: Use nested evaluations X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d30d248e14ccbf88d8a0e2bdcb4ca4aa32d6d8fd;p=neomutt auto.def: Use nested evaluations --- diff --git a/auto.def b/auto.def index f21eb75c9..e8641e9db 100644 --- a/auto.def +++ b/auto.def @@ -189,8 +189,8 @@ if {1} { close $fd}] || $epoch eq "" } { #user-notice "No author timestamp found, falling back to PACKAGE_VERSION..." - if {![set pkgdate [get-define PACKAGE_VERSION]] || [catch { - set epoch [clock scan $pkgdate -format {%Y%m%d} -timezone :UTC]}] + if {[catch {clock scan [get-define PACKAGE_VERSION] \ + -format {%Y%m%d} -timezone :UTC} epoch] } { autosetup-error "Cannot get or parse PACKAGE_VERSION as date!" }