From: Kevin Rosenberg Date: Fri, 11 Jul 2008 00:34:46 +0000 (-0600) Subject: do not show section if empty X-Git-Tag: debian-1.6.6-2~1 X-Git-Url: http://git.kpe.io/?p=lml2.git;a=commitdiff_plain;h=d087da5d987f4e02b7c17c197dc61057881cbd8b do not show section if empty --- diff --git a/downloads.lisp b/downloads.lisp index e7b5897..33d8615 100644 --- a/downloads.lisp +++ b/downloads.lisp @@ -176,9 +176,10 @@ base))) (display-page pkg-name pkg-base dl-base dl-url giturl gitweb `(("Manual" ,doc-path) - ("Source Code" - (("Unix (.tar.gz)" ,tgz-path) - ("Windows (.zip)" ,zip-path))) + ,@(when (or (directory tgz-path) (directory zip-path)) + `(("Source Code" + (("Unix (.tar.gz)" ,tgz-path) + ("Windows (.zip)" ,zip-path))))) ("Binaries" (("Linux Binaries" ,linux-path) ("Linux .deb Packages" ,deb-path)