From: Kevin M. Rosenberg Date: Mon, 16 Sep 2002 03:09:50 +0000 (+0000) Subject: r2673: Auto commit for Debian build X-Git-Tag: v2.5.5~190 X-Git-Url: http://git.kpe.io/?p=lml.git;a=commitdiff_plain;h=0cd5f00df6e8c3c0ee57fa7b2eba016161b0202f r2673: Auto commit for Debian build --- diff --git a/debian/changelog b/debian/changelog index 1ab96ae..eb589d3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +cl-lml (1.0.1-1) unstable; urgency=low + + * Changle FILE-LENGTH function to use stream. + + -- Kevin M. Rosenberg Sun, 15 Sep 2002 21:09:30 -0600 + cl-lml (1.0.0-1) unstable; urgency=low * Initial Release (closes: 161007) diff --git a/downloads.cl b/downloads.cl index 3889dea..bba97ca 100644 --- a/downloads.cl +++ b/downloads.cl @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Aug 2002 ;;;; -;;;; $Id: downloads.cl,v 1.1 2002/09/16 01:13:49 kevin Exp $ +;;;; $Id: downloads.cl,v 1.2 2002/09/16 03:09:00 kevin Exp $ ;;;; ;;;; This file, part of LML, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -43,7 +43,7 @@ (subseq (length bdir) (length fdir) fdir)))))) (defun print-file (file) - (let ((size (round (/ (file-length file) 1024))) + (let ((size 0) (modtime (date-string (file-write-date file))) (basename (namestring (make-pathname :name (pathname-name file) @@ -54,6 +54,8 @@ :type (concatenate 'string (pathname-type file) ".asc")))) + (with-open-file (strm file :direction :input) + (setq size (round (/ (file-length strm) 1024)))) (lml-print "~A" *ftp-url* ftp-name basename) (lml-print "") (lml-print " (~A, ~:D KB)" modtime size)