Skip to content

Commit

Permalink
package-recipe: Rename slot tag-regexp to time-regexp
Browse files Browse the repository at this point in the history
The old name was already wrong when it was added in [1: f125214].
This has absolutely nothing to do with tags, quite the opposite,
it is only used when we ignore the tags.

1: f125214 Add new library
   package-recipe
  • Loading branch information
tarsius committed Jul 5, 2021
1 parent 6fe53d8 commit 0780743
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-build.el
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Otherwise do nothing. FORMAT-STRING and ARGS are as per that function."
(cons (package-build--get-commit rcp)
(package-build--parse-time
(package-build--get-timestamp rcp)
(oref rcp tag-regexp))))
(oref rcp time-regexp))))

;;;; Internal

Expand Down
6 changes: 3 additions & 3 deletions package-recipe.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
(defclass package-recipe ()
((url-format :allocation :class :initform nil)
(repopage-format :allocation :class :initform nil)
(tag-regexp :allocation :class :initform nil)
(time-regexp :allocation :class :initform nil)
(stable-p :allocation :class :initform nil)
(name :initarg :name :initform nil)
(url :initarg :url :initform nil)
Expand Down Expand Up @@ -66,7 +66,7 @@
;;;; Git

(defclass package-git-recipe (package-recipe)
((tag-regexp :initform "\
((time-regexp :initform "\
\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} \
[0-9]\\{2\\}:[0-9]\\{2\\}:[0-9]\\{2\\}\\( [+-][0-9]\\{4\\}\\)?\\)")))

Expand All @@ -81,7 +81,7 @@
;;;; Mercurial

(defclass package-hg-recipe (package-recipe)
((tag-regexp :initform "\
((time-regexp :initform "\
\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} \
[0-9]\\{2\\}:[0-9]\\{2\\}\\( [+-][0-9]\\{4\\}\\)?\\)")))

Expand Down

0 comments on commit 0780743

Please sign in to comment.