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'.

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