pkgbuilds/emacs-bzr/pkgver.patch
Tom Willemse d1792da288 Update emacs-bzr
- Remove pkgdep.patch (has been included in Emacs trunk)
- Add pkgver.patch
2014-01-20 10:17:04 +01:00

26 lines
1.1 KiB
Diff

=== 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))