Function: package-archive-base

package-archive-base is a byte-compiled function defined in package.el.gz.

Signature

(package-archive-base DESC)

Documentation

Return the package described by DESC.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/package.el.gz
;;; Installation Functions
;; As opposed to the previous section (which listed some underlying
;; functions necessary for installation), this one contains the actual
;; functions that install packages.  The package itself can be
;; installed in a variety of ways (archives, buffer, file), but
;; requirements (dependencies) are always satisfied by looking in
;; `package-archive-contents'.
;;
;; If Emacs installs a package from a package archive, it might create
;; some files in addition to the package's contents.  For example:
;;
;; - If the package archive provides a non-trivial long description for
;;   some package in "PACKAGE-readme.txt", Emacs stores it in a file
;;   named "README-elpa" in the package's content directory, unless the
;;   package itself provides such a file.
;;
;; - If a package archive provides package signatures, Emacs stores
;;   information on the signatures in files named "NAME-VERSION.signed"
;;   below directory `package-user-dir'.

(defun package-archive-base (desc)
  "Return the package described by DESC."
  (cdr (assoc (package-desc-archive desc) package-archives)))