]> granicus.if.org Git - neomutt/commitdiff
auto.def: Use nested evaluations
authorFloyd Anderson <f.a@31c0.net>
Sun, 25 Mar 2018 04:37:25 +0000 (06:37 +0200)
committerRichard Russon <rich@flatcap.org>
Wed, 25 Apr 2018 02:02:17 +0000 (03:02 +0100)
auto.def

index f21eb75c91b49df0fad466a81f59586983bc388d..e8641e9db4b30e8569b6ba3d6553f0312673077e 100644 (file)
--- 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!"
       }