Function: package-get-descriptor

package-get-descriptor is a byte-compiled function defined in package.el.gz.

Signature

(package-get-descriptor PKG-NAME)

Documentation

Return the package-desc of PKG-NAME.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/package.el.gz
;;;; Introspection

(defun package-get-descriptor (pkg-name)
  "Return the `package-desc' of PKG-NAME."
  (unless package--initialized (package-initialize 'no-activate))
  (or (package--get-activatable-pkg pkg-name)
      (cadr (assq pkg-name package-alist))
      (cadr (assq pkg-name package-archive-contents))))