pkgbuilds/emacs-bzr/pkgver.patch

27 lines
1.1 KiB
Diff
Raw Normal View History

=== modified file 'lisp/emacs-lisp/package.el'
*** lisp/emacs-lisp/package.el 2013-12-11 21:15:12 +0000
--- lisp/emacs-lisp/package.el 2013-12-12 20:01:41 +0000
***************
*** 1128,1138 ****
;; probably wants us to use it. Otherwise try Version.
(pkg-version
(or (package-strip-rcs-id (lm-header "package-version"))
! (package-strip-rcs-id (lm-header "version"))))
(homepage (lm-homepage)))
- (unless pkg-version
- (error
- "Package lacks a \"Version\" or \"Package-Version\" header"))
(package-desc-from-define
file-name pkg-version desc
(if requires-str (package-read-from-string requires-str))
--- 1128,1136 ----
;; probably wants us to use it. Otherwise try Version.
(pkg-version
(or (package-strip-rcs-id (lm-header "package-version"))
! (package-strip-rcs-id (lm-header "version"))
! "0"))
(homepage (lm-homepage)))
(package-desc-from-define
file-name pkg-version desc
(if requires-str (package-read-from-string requires-str))