forked from dimitri/el-get
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some bugs are blocking users in 2.stable and the code diverted enough to warrant releasing 3.1 rather than spending time fixing 2.stable. Also, it's been a long time without release and we have some excellent new features (dependency support, el-get-list-packages, etc). The el-get recipe is already refering to the 3.stable branch, that will be created from this commit.
- Loading branch information
Showing
3 changed files
with
32 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,9 @@ | |
;; Copyright (C) 2010 Dimitri Fontaine | ||
;; | ||
;; Author: Dimitri Fontaine <[email protected]> | ||
;; URL: https://www.emacswiki.org/emacs/el-get.el | ||
;; Version: 2.2 | ||
;; URL: https://www.emacswiki.org/emacs/el-get | ||
;; GIT: https://github.com/dimitri/el-get | ||
;; Version: 3.1 | ||
;; Created: 2010-06-17 | ||
;; Keywords: emacs package elisp install elpa git git-svn bzr cvs svn darcs hg | ||
;; apt-get fink pacman http http-tar emacswiki | ||
|
@@ -29,16 +30,17 @@ | |
|
||
;;; Change Log: | ||
;; | ||
;; 3.0 - WIP - Get a fix | ||
;; 3.1 - 2011-09-15 - Get a fix | ||
;; | ||
;; - support fo package dependencies | ||
;; - support for package dependencies | ||
;; - rely on package status for `el-get' to install and init them | ||
;; - M-x el-get-list-packages | ||
;; - support for :branch in git | ||
;; - new recipes, galore | ||
;; - bug fixes, byte compiling, windows compatibility, etc | ||
;; - recipe files are now *.rcp rather than *.el (el still supported) | ||
;; - el-get-user-package-directory allows to setup init-<package>.el files | ||
;; - remove M-x el-get-sync, now obsolete | ||
;; | ||
;; 2.2 - 2011-05-26 - Fix the merge | ||
;; | ||
|
@@ -139,6 +141,7 @@ | |
;; - implement el-get-rmdir | ||
|
||
;;; Code: | ||
|
||
(require 'dired) | ||
(require 'package nil t) ; that's ELPA, but you can use el-get to install it | ||
(require 'cl) ; needed for `remove-duplicates' | ||
|
@@ -532,6 +535,7 @@ being sent to the underlying shell." | |
) | ||
)) | ||
|
||
|
||
;; | ||
;; Support for tracking package states | ||
;; | ||
|
@@ -579,6 +583,7 @@ for reasons described in INFO." | |
(el-get-set-package-state package `(error ,info))) | ||
(add-hook 'el-get-post-error-hooks 'el-get-mark-failed) | ||
|
||
|
||
;; | ||
;; "Fuzzy" data structure handling | ||
;; | ||
|
@@ -627,6 +632,8 @@ returning a list that contains it (and only it)." | |
) | ||
;;; END "Fuzzy" data structure support | ||
|
||
|
||
|
||
(defun el-get-source-name (source) | ||
"Return the package name (stringp) given an `el-get-sources' | ||
entry." | ||
|
@@ -943,6 +950,9 @@ platforms where this recipe should apply" | |
,el-get-build-recipe-body)))))) | ||
|
||
|
||
;; | ||
;; Some tools | ||
;; | ||
(defun el-get-flatten (arg) | ||
"Return a version of ARG as a one-level list | ||
|
@@ -1079,6 +1089,7 @@ are now installed" | |
install DEPENDENCY, with error information DATA" | ||
(el-get-mark-failed package (list dependency data))) | ||
|
||
|
||
(defun el-get-install (package) | ||
"Cause the named PACKAGE to be installed after all of its | ||
dependencies (if any). | ||
|
@@ -1130,12 +1141,12 @@ PACKAGE may be either a string or the corresponding symbol." | |
((debug error) | ||
(el-get-installation-failed package err))))) | ||
|
||
|
||
(defun el-get-installation-failed (package signal-data) | ||
"Run all the failure hooks for PACKAGE and `signal' the car and cdr of SIGNAL-DATA." | ||
(run-hook-with-args 'el-get-post-error-hooks package signal-data) | ||
(signal (car signal-data) (cdr signal-data))) | ||
|
||
|
||
;; | ||
;; call-process-list utility | ||
;; | ||
|
@@ -3094,11 +3105,6 @@ entry which is not a symbol and is not already a known recipe." | |
(el-get-write-recipe r dir))) | ||
(dired dir)) | ||
|
||
(defun el-get-sync () | ||
"M-x el-get-sync will synchronously install and init your el-get packages" | ||
(interactive) | ||
(el-get 'sync)) | ||
|
||
;; | ||
;; notify user with emacs notifications API (new in 24) | ||
;; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters