[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/package+vc f9065c7951 5/9: Use 'package-vc-p' in package-vc.el
From: |
Philip Kaludercic |
Subject: |
feature/package+vc f9065c7951 5/9: Use 'package-vc-p' in package-vc.el |
Date: |
Sat, 8 Oct 2022 05:58:49 -0400 (EDT) |
branch: feature/package+vc
commit f9065c7951bd31b3475e2c425cd2b6c08e51b7e1
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Use 'package-vc-p' in package-vc.el
* package-vc.el (package-vc-commit): Use it instead of 'eq'.
(package-vc-version): Use it instead of 'eq'.
---
lisp/emacs-lisp/package-vc.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index d3850a5e2c..e03a5f73b4 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -71,7 +71,7 @@
(defun package-vc-commit (pkg)
"Extract the commit of a development package PKG."
- (cl-assert (eq (package-desc-kind pkg) 'vc))
+ (cl-assert (package-vc-p pkg))
;; FIXME: vc should be extended to allow querying the commit of a
;; directory (as is possible when dealing with git repositores).
;; This should be a fallback option.
@@ -82,7 +82,7 @@
(defun package-vc-version (pkg)
"Extract the commit of a development package PKG."
- (cl-assert (eq (package-desc-kind pkg) 'vc))
+ (cl-assert (package-vc-p pkg))
(cl-loop with dir = (package-desc-dir pkg) ;FIXME: dir is nil
for file in (sort (directory-files dir t "\\.el\\'")
(lambda (s1 s2)
- feature/package+vc updated (bb2bd2ed91 -> a4a825df82), Philip Kaludercic, 2022/10/08
- feature/package+vc effe1f20f5 3/9: Extract package maintainer guessing code into a separate function, Philip Kaludercic, 2022/10/08
- feature/package+vc e75994f2ff 2/9: Add an inline procedure for checking for source packages, Philip Kaludercic, 2022/10/08
- feature/package+vc a4a825df82 9/9: Clone packages into a separate directory, Philip Kaludercic, 2022/10/08
- feature/package+vc 077c1533df 6/9: ; * package-vc.el (package-vc-read-pkg): Return package description, Philip Kaludercic, 2022/10/08
- feature/package+vc f9065c7951 5/9: Use 'package-vc-p' in package-vc.el,
Philip Kaludercic <=
- feature/package+vc 8cfeb8a9e0 1/9: Merge branch 'master' into feature/package+vc, Philip Kaludercic, 2022/10/08
- feature/package+vc e092e60f15 4/9: Add a package-vc command for submitting ptches, Philip Kaludercic, 2022/10/08
- feature/package+vc 7c66223dfb 8/9: * lisp/emacs-lisp/package.el (package-report-bug): Use 'file-in-directory-p', Philip Kaludercic, 2022/10/08
- feature/package+vc 432252c23f 7/9: Extend package-vc heuristics to multiple source forges, Philip Kaludercic, 2022/10/08