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.
This commit is contained in:
parent
022ab1061b
commit
a8ee046fb5
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue