r3734: *** empty log message ***
[lml.git] / downloads.lisp
index 226095eebfa7d3bf0ea21fe208f9f3534498f465..affe2c63a4ca1c54cb8d563eab0083130904c675 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Aug 2002
 ;;;;
-;;;; $Id: downloads.lisp,v 1.1 2002/09/30 10:26:43 kevin Exp $
+;;;; $Id: downloads.lisp,v 1.6 2002/10/31 18:52:23 kevin Exp $
 ;;;;
 ;;;; This file, part of LML, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -38,9 +38,9 @@
      :name (pathname-name file)
      :type (pathname-type file)
      :directory 
-     (when (> (length bdir) (length fdir))
+     (when (> (length fdir) (length bdir))
        (append '(:absolute) 
-              (subseq (length bdir) (length fdir) fdir))))))
+              (subseq fdir (length bdir) (length fdir)))))))
      
 (defun print-file (file)
   (let ((size 0)
     (let ((title (car sects))
          (value (cadr sects)))
       (if (consp title)
-         (mapcar #'display-sections sects)
-       (if (consp  value)
+         (map nil #'display-sections sects)
+       (if (consp value)
            (progn
              (print-sect-title title)
              (incf *section-indent*)
        (*base-name* pkg-base)
        (*signed* nil))
     (display-header pkg-name ftp-url)
-    (mapcar #'display-sections sects)
+    (map nil #'display-sections sects)
     (display-footer)))
 
 (defun std-dl-page (pkg-name pkg-base ftp-base ftp-url)
                                    :type :wild :name :wild)
                     base))
          (w32-path (merge-pathnames
-                    (make-pathname :directory '(:relative "w32")
+                    (make-pathname :directory '(:relative "win32")
                                    :type :wild :name :wild)
                     base)))
       (display-page pkg-name pkg-base ftp-base ftp-url