Mercurial > hg > xemacs-beta
diff lisp/package-admin.el @ 274:ca9a9ec9c1c1 r21-0b35
Import from CVS: tag r21-0b35
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:29:42 +0200 |
parents | f220cc83d72e |
children | 341dac730539 |
line wrap: on
line diff
--- a/lisp/package-admin.el Mon Aug 13 10:28:54 2007 +0200 +++ b/lisp/package-admin.el Mon Aug 13 10:29:42 2007 +0200 @@ -44,10 +44,10 @@ `file' should be the full path to the lisp file to install. `destdir' should be a simple directory name. The optional `pkg-dir' can be used to override the default package hierarchy -\(last package-path)." +\(car \(last late-packages))." (interactive "fLisp File: \nsDestination: ") (when (null pkg-dir) - (setq pkg-dir (cadr package-path))) + (setq pkg-dir (car (last late-packages)))) (let ((destination (concat pkg-dir "/lisp/" destdir)) (buf (get-buffer-create package-admin-temp-buffer))) (call-process "add-little-package.sh" @@ -62,10 +62,10 @@ "Install a pre-bytecompiled XEmacs package into package hierarchy." (interactive "fPackage tarball: ") (when (null pkg-dir) - (when (or (not (listp package-path)) - (not package-path)) + (when (or (not (listp late-packages)) + (not late-packages)) (error "No package path")) - (setq pkg-dir (car (last package-path)))) + (setq pkg-dir (car (last late-packages)))) (let ((buf (get-buffer-create package-admin-temp-buffer))) (call-process "add-big-package.sh"