From 0cd5f00df6e8c3c0ee57fa7b2eba016161b0202f Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Mon, 16 Sep 2002 03:09:50 +0000 Subject: [PATCH] r2673: Auto commit for Debian build --- debian/changelog | 6 ++++++ downloads.cl | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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) -- 2.34.1