r2679: Auto commit for Debian build
authorKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 16 Sep 2002 03:35:27 +0000 (03:35 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 16 Sep 2002 03:35:27 +0000 (03:35 +0000)
downloads.cl

index e41ebd5a1c89ce31690da23be9a93c85b206648f..2fdfe8a68a98bd5c569bd9d504d1f2b9e4b3f7b7 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Aug 2002
 ;;;;
-;;;; $Id: downloads.cl,v 1.5 2002/09/16 03:25:08 kevin Exp $
+;;;; $Id: downloads.cl,v 1.6 2002/09/16 03:35:27 kevin Exp $
 ;;;;
 ;;;; This file, part of LML, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
                                  :type (pathname-type file))))
        (ftp-name (strip-ftp-base file))
        (sig-path (concatenate 'string (namestring file) ".asc")))
-    (with-open-file (strm file :direction :input)
-      (setq size (round (/ (file-length strm) 1024))))
-    (lml-print "<a href=\"~A~A\">~A</a>" *ftp-url* ftp-name basename)
-    (lml-print "<span class=\"modtime\">")
-    (lml-print " (~A, <b>~:D <span style=\"font-size:90%;\">KB</span></b>)</span>" modtime size)
-    (when (probe-file sig-path)
-      (setq *signed* t)
-      (lml-print " [<a href=\"~A~A.asc\">Signature</a>]" *ftp-url* ftp-name))
-     (br)))
+    (when basename
+      (with-open-file (strm file :direction :input)
+                     (setq size (round (/ (file-length strm) 1024))))
+      (lml-print "<a href=\"~A~A\">~A</a>" *ftp-url* ftp-name basename)
+      (lml-print "<span class=\"modtime\">")
+      (lml-print " (~A, <b>~:D <span style=\"font-size:90%;\">KB</span></b>)</span>" modtime size)
+      (when (probe-file sig-path)
+       (setq *signed* t)
+       (lml-print " [<a href=\"~A~A.asc\">Signature</a>]" *ftp-url* ftp-name))
+      (br))))
 
 (defun display-header (name url)
   (lml-print "<h1>Download</h1>")