Skip to content

Commit

Permalink
fix: Package x is unavailable issue from snapshot (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 authored Jan 26, 2023
1 parent a52bf99 commit 5c32748
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion lisp/core/install.el
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
installed s skipped)))

(eask-start
(eask-defvc< 27 (eask-pkg-init)) ; XXX: remove this after we drop 26.x
;; XXX: You must refresh content before you install the package,
;; see https://github.com/ericdallo/jet.el/issues/1
(eask-pkg-init)
(if-let ((names (eask-args)))
;; If package [name..] are specified, we try to install it
(eask--install-packages names)
Expand Down
6 changes: 4 additions & 2 deletions lisp/core/reinstall.el
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@
(if-let* ((name (intern (eask-guess-package-name)))
((package-installed-p name)))
(progn
(eask-package-reinstall name)
(eask-call "core/uninstall")
(eask-msg "")
(eask-info "(Reinstalled %s)" name))
(eask-call "core/install")
(eask-msg "")
(eask-info "(Package `%s' reinstalled.)" name))
(eask-msg "")
(eask-info "✗ (No packages have been reintalled)")
(eask-help "core/reinstall"))))
Expand Down
2 changes: 1 addition & 1 deletion lisp/core/uninstall.el
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
(progn
(eask-package-delete name)
(eask-msg "")
(eask-info "(Deleted %s)" name))
(eask-info "(Package `%s' deleted.)" name))
(eask-info "✗ (No packages have been unintalled)")
(eask-help "core/uninstall"))))

Expand Down

0 comments on commit 5c32748

Please sign in to comment.