Function: package-desc-suffix
package-desc-suffix is a byte-compiled function defined in
package.el.gz.
Signature
(package-desc-suffix PKG-DESC)
Documentation
Return file-name extension of package-desc object PKG-DESC.
Depending on the package-desc-kind of PKG-DESC, this is one of:
'single - ".el"
'tar - ".tar"
'dir - ""
Signal an error if the kind is none of the above.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/package.el.gz
(defun package-desc-suffix (pkg-desc)
"Return file-name extension of package-desc object PKG-DESC.
Depending on the `package-desc-kind' of PKG-DESC, this is one of:
\\='single - \".el\"
\\='tar - \".tar\"
\\='dir - \"\"
Signal an error if the kind is none of the above."
(pcase (package-desc-kind pkg-desc)
('single ".el")
('tar ".tar")
('dir "")
(kind (error "Unknown package kind: %s" kind))))