Function: package-vc--version
package-vc--version is a byte-compiled function defined in
package-vc.el.gz.
Signature
(package-vc--version PKG)
Documentation
Return the version number for the VC package PKG.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/package-vc.el.gz
(defun package-vc--version (pkg)
"Return the version number for the VC package PKG."
(cl-assert (package-vc-p pkg))
(if-let ((main-file (package-vc--main-file pkg)))
(with-temp-buffer
(insert-file-contents main-file)
(package-strip-rcs-id
(or (lm-header "package-version")
(lm-header "version")
"0")))
"0"))