X-Git-Url: http://git.kpe.io/?p=lml2.git;a=blobdiff_plain;f=downloads.lisp;h=855505b0a948a85c69dab5825836388052e7c6b7;hp=05a6716c1ac5ea0d2ae7c8324bbdc701f62ab263;hb=733ea685ca7cdeeefbd5494954b308b9dbe51846;hpb=1726bee5998c1f574c84f294f26b982e124da629 diff --git a/downloads.lisp b/downloads.lisp index 05a6716..855505b 100644 --- a/downloads.lisp +++ b/downloads.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Aug 2002 ;;;; -;;;; $Id: downloads.lisp,v 1.3 2003/07/12 17:57:34 kevin Exp $ +;;;; $Id$ ;;;; ;;;; This file, part of LML2, is Copyright (c) 2000-2003 by Kevin Rosenberg. ;;;; Rights of modification and redistribution are in the LICENSE file. @@ -24,9 +24,9 @@ ;;files.sort() (mapcar (lambda (f) (print-file f dl-data)) files)) -(defun strip-dl-base (file base-name) +(defun strip-dl-base (file base) (let ((fdir (pathname-directory file)) - (bdir (pathname-directory base-name))) + (bdir (pathname-directory base))) (make-pathname :name (pathname-name file) :type (pathname-type file) @@ -41,7 +41,7 @@ (basename (namestring (make-pathname :name (pathname-name file) :type (pathname-type file)))) - (dl-name (strip-dl-base file (dl-data-name dl-data))) + (dl-name (strip-dl-base file (dl-data-base dl-data))) (sig-path (concatenate 'string (namestring file) ".asc"))) (when (plusp (length basename)) (with-open-file (strm file :direction :input) @@ -60,10 +60,11 @@ (lml-princ "

Download

") (lml-princ "
") (lml-format "

Browse ~A Download Site

" name) - (lml-format "~A" url url)) + (let ((*print-circle* nil)) + (lml-format "~A" url url))) (defun display-footer (dl-data) - (when (dl-data-signed) + (when (dl-data-signed dl-data) (lml-princ "

GPG Public Key

") (lml-princ "Use this key to verify file signtatures")) (lml-princ "
")) @@ -116,7 +117,7 @@ (display-sections sect dl-data)) (if (consp value) (progn - (print-sect-title title) + (print-sect-title title dl-data) (incf (dl-data-indent dl-data)) (display-sections value dl-data) (decf (dl-data-indent dl-data)))