From: Philip Kaludercic Date: Sat, 10 Dec 2022 08:47:42 +0000 (+0100) Subject: Ensure 'package-vc--version' always returns a version X-Git-Tag: emacs-29.0.90~1260 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a8ee046fb500a527d3fa44e69a4bc178d0ae8406;p=emacs.git Ensure 'package-vc--version' always returns a version * lisp/emacs-lisp/package-vc.el (package-vc--version): Return "0" even if the main file exists, but lacks version headers. --- diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el index b514afe288e..db54e0e130e 100644 --- a/lisp/emacs-lisp/package-vc.el +++ b/lisp/emacs-lisp/package-vc.el @@ -294,7 +294,8 @@ asynchronously." (insert-file-contents main-file) (package-strip-rcs-id (or (lm-header "package-version") - (lm-header "version")))) + (lm-header "version") + "0"))) "0")) (defun package-vc--main-file (pkg-desc)