Browse files

Ensure el-get doesn't check for update on uninstalled package

  • Loading branch information...
DarwinAwardWinner committed May 13, 2012
1 parent 7a81d5b commit a1e3054b749798d4608b76d3634d32c074f067b1
Showing with 2 additions and 0 deletions.
  1. +2 −0 methods/el-get-elpa.el
@@ -116,6 +116,8 @@ the recipe, then return nil."
(defun el-get-elpa-update-available-p (package)
"Returns t if PACKAGE has an update available in ELPA."
+ (assert (el-get-package-is-installed package) nil
+ (sprintf "Cannot update non-installed ELPA package %s" package))
(let ((installed-version
(package-desc-vers (cdr (assq package package-alist))))

0 comments on commit a1e3054

Please sign in to comment.