diff lisp/packages.el @ 280:7df0dd720c89 r21-0b38

Import from CVS: tag r21-0b38
author cvs
date Mon, 13 Aug 2007 10:32:22 +0200
parents 90d73dddcdc4
children 57709be46d1b
line wrap: on
line diff
--- a/lisp/packages.el	Mon Aug 13 10:31:30 2007 +0200
+++ b/lisp/packages.el	Mon Aug 13 10:32:22 2007 +0200
@@ -88,6 +88,7 @@
    (list "site-packages"     'late  #'(lambda () t))
    (list "infodock-packages" 'late  #'(lambda () (featurep 'infodock)))
    (list "mule-packages"     'late  #'(lambda () (featurep 'mule)))
+   (list "xemacs-packages"   'late  #'(lambda () t))
    (list "packages"          'late  #'(lambda () t)))
   "Locations of the various package directories.
 This is a list each of whose elements describes one directory.
@@ -320,7 +321,9 @@
 
 (defun packages-find-package-directories (roots base)
   "Find a set of package directories."
-  (let ((version-directory (paths-find-version-directory roots base))
+  ;; make sure paths-find-version-directory and paths-find-site-directory
+  ;; don't both pick up version-independent directories ...
+  (let ((version-directory (paths-find-version-directory roots base nil nil t))
 	(site-directory (paths-find-site-directory roots base)))
     (paths-uniq-append
      (and version-directory (list version-directory))