Patch to asdf-install to cope with certain tar files on cmucl
Hans Hübner <[email protected]> Mon, 23 Jan 2006 14:49:57 +0100 (CET)
| Newsgroups | gmane.lisp.cclan.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi,
asdf-install does not properly work when the first entry in the package tar
file is the directory. It the function install-package tries to determine the
name of the created subdirectory by looking at tar's output. It fails to
correctly test parse the output, though, if the first line printed by tar is
the name of the package subdirectory, without a trailing slash.
This patch fixes the wrong search for the character terminating the
subdirectory name.
-Hans
--- installer.lisp.orig Mon Jan 23 14:20:14 2006
+++ installer.lisp Mon Jan 23 14:20:15 2006
@@ -522,9 +522,9 @@
(namestring (truename source))
(namestring (truename packagename)))))
(error "ASDF-INSTALL: can't untar ~S." packagename)))
- (pos-slash (or (position #\/ tar)
- (position #\Return tar)
- (position #\Linefeed tar)))
+ (pos-slash (or (position #\Return tar)
+ (position #\Linefeed tar)
+ (position #\/ tar)))
(*default-pathname-defaults*
(merge-pathnames
(make-pathname :directory
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642