Skip to content

Commit

Permalink
Fix logic when deciding if apt-get package should be installed
Browse files Browse the repository at this point in the history
Install apt-get package only if it's not installed.
  • Loading branch information
manandbytes committed Sep 8, 2016
1 parent 8f235fa commit e899853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions methods/el-get-apt-get.el
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ password prompt."
(defun el-get-apt-get-install-if-needed (package url post-install-fun)
"Call `el-get-apt-get-install' if PACKAGE isn't installed yet.
The installation status is retrieved from the system, not el-get."
(when (el-get-dpkg-package-installed-p (or (plist-get (el-get-package-def package) :pkgname)
(el-get-as-string package)))
(unless (el-get-dpkg-package-installed-p (or (plist-get (el-get-package-def package) :pkgname)
(el-get-as-string package)))
(el-get-apt-get-install package url post-install-fun)))

(defun el-get-apt-get-install (package url post-install-fun)
Expand Down

0 comments on commit e899853

Please sign in to comment.