Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Have el-get-rmdir call the post-remove-fun, fix dimitri#845.
  • Loading branch information
dimitri committed Dec 14, 2012
1 parent 2a387d1 commit 7caafba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions el-get-core.el
Expand Up @@ -142,7 +142,7 @@ entry."
;;
;; Common support bits
;;
(defun el-get-rmdir (package &rest ignored)
(defun el-get-rmdir (package url post-remove-fun)
"Just rm -rf the package directory. If it is a symlink, delete it."
(let* ((edir (expand-file-name el-get-dir))
(pdir (expand-file-name "." (el-get-package-directory package))))
Expand All @@ -157,7 +157,8 @@ entry."
((file-directory-p pdir)
(delete-directory pdir 'recursive))
((file-exists-p pdir)
(delete-file pdir)))))
(delete-file pdir)))
(funcall post-remove-fun package)))


;;
Expand Down

0 comments on commit 7caafba

Please sign in to comment.