branch: elpa-admin
commit 54ca8ea7ed563ee3ecf3591611356569cb0f0ed6
Author: Stefan Monnier <[email protected]>
Commit: Stefan Monnier <[email protected]>
* elpa-admin.el: Don't build release tarballs for pre-release versions
(elpaa--make-one-package): Treat all pre-release like we did for snapshots.
---
elpa-admin.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/elpa-admin.el b/elpa-admin.el
index 8777c02..1f3d7b7 100644
--- a/elpa-admin.el
+++ b/elpa-admin.el
@@ -673,12 +673,12 @@ place the resulting tarball into the file named
ONE-TARBALL."
;; Try and build the latest release tarball.
(cond
(one-tarball nil)
- ((or (equal vers "0")
- ;; -4 is used for "NN.MMsnapshot" and "NN.MM-git"
- (member '-4 (version-to-list vers)))
+ ((equal vers "0")
+ (elpaa--message "Package %s not released yet!" pkgname))
+ ;; negative version numbers are used for pre-releases
+ ;; (i.e. snapshots, alpha, beta, and rc).
+ ((< (apply #'min (version-to-list vers)) 0)
(cond
- ((equal vers "0")
- (elpaa--message "Package %s not released yet!" pkgname))
((not new)
(elpaa--message "Nothing new for package %s!" pkgname))
(t