Commit Graph

129 Commits

Author SHA1 Message Date
Noam Postavsky
7cbe429fd3 emacswiki should default to base url for checksum
Since emacswiki recipes might not have an explicit :url in their recipe,
the :compute-checksum method should fallback to the base url, like the
:install and :guess-website methods.
2014-03-01 20:43:37 -05:00
Ryan C. Thompson
fdaaf51570 Cleanup indentation with custom indent rules 2014-03-01 16:19:46 -08:00
Ryan C. Thompson
cf34f9aa0a Clean up whitespace
This commit is the result of running cleanup-whitespace.sh.

Fixes #549.
2014-02-21 10:52:48 -08:00
myeffort
67830e2a59 Fixed some mistakes from previous commit.
In particular I neglected the fact that I've introduced a conditional
which blocked package-refresh-contents from el-get-elpa-install in some
cases. Practically the smae bug which I attempted to fix, could have
been encountered if packages were installing in opposite order, whcich i
try to reflect in added variant of the test.
2014-02-12 06:08:09 +04:00
myeffort
6294b849df Condition in elpa install with refresh package
Added a check for new `package-archives' entries to fetch/update their
archive-contents and regenerate for new configuration of
`package-archives'.
2014-02-11 21:45:11 +04:00
Claudio Bley
b388ac7aa9 Use el-get-executable find in el-get-http-tar-install
This makes the http-tar method fail if no "tar" executable
can be found, see #1545.
2014-01-31 08:30:00 +01:00
Adam Spiers
1f5c12aef9 add debugging to el-get-http-retrieve-callback
Try to find out why it sometimes fails (e.g. see #1240).
2014-01-04 14:34:35 +00:00
Doug MacEachern
e0c220e6fc Add method to install go packages
Several go related tools can be used within emacs, such as:
gocode, godef, goimports, golint, goflymake, etc.

The el-get-go method lets the 'go get' command take care of
downloading and building such tools.  The main advantage is letting
go get take care of resolving dependecies and building the binary,
rather than wedging into the :build property.
2013-12-27 15:06:19 -08:00
Noam Postavsky
5958f81dea convert elpa emacs dep to :minimum-emacs-version
Instead of producing bogus dependency on `emacs' package,
el-get-elpa-build-local-recipes should add a :minimum-emacs-version
clause instead.
2013-12-14 12:08:53 -05:00
Ryan C. Thompson
99cb036bad Fix #1454 by requiring package.el eagerly
Just adding "(require 'package)" to "el-get-elpa-package-directory"
fixes this bug, because by the time any elpa package is being installed
or fetched, package.el has to be available, so all we have to do is load
it if it hasn't already been loaded.
2013-11-22 08:39:58 -08:00
Noam Postavsky
32ab64f47e be more precise about elpa package dir names
ELPA Package directories are named <package>-<version>.  Previously
`el-get-elpa-package-directory' looked for package-dirs using
`all-completions' meaning anything starting with <package> would match.
This is problematic if a package is a prefix of another package, eg the
`s' and `solarized-theme' packages.

Instead of doing that, look for a directory that is precisely
<package>-<version> where <version> is something acceptable to
`version-to-list'.

Fixes #1189.
2013-10-07 00:20:16 -04:00
Noam Postavsky
dd18802af9 call package-initialize in elpa installion
The package-install function calls some initalization functions from
within the interactive form.  This can cause it to fail when called
non-interactively.

package-refresh-contents calls package-read-all-archive-contents so we
don't need to call it explicitly.

Fixes #1389
2013-09-29 16:22:59 -04:00
ryjm
19e03dd97a Fix el-get-elpa-package-directory returning a non-existing directory.
el-get-elpa-package-directory will not always return a real directory,
since two directories might have the same prefix (for example, erc
installs as `erc-5.3` but has a package name of `erc`. So
`try-completion` will return `erc-` if you have something
like `erc-image` installed.)

`all-completions` will return a list of actual directories which
satisfy the completion, and the `car` of this list will be the package
we want. `when realnames` will return `nil` when there are no possible
completions.
2013-07-24 11:46:45 -04:00
Dimitri Fontaine
df50585181 Merge pull request #1300 from ruediger/elpa24_4
Fix elpa support for Emacs 24.4
2013-07-21 16:28:10 -07:00
Dimitri Fontaine
620199e94a Merge pull request #1272 from ruediger/elpa-guess-website
Add guess-website function for ELPA method.
2013-07-21 16:06:46 -07:00
Rüdiger Sonderfeld
0aaf7db4ea Minor fix: sprintf' replaced by format'.
(elisp is not C ;-)

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2013-07-19 15:40:38 +02:00
Rüdiger Sonderfeld
3b80a0db09 Fix elpa support for Emacs 24.4.
`package-desc-vers' is obsolete (replaced by `package-desc-version')
and `package-alist' has a different layout.

el-get-elpa also calls `el-get-rmdir' in some cases with
post-remove-fun as nil.

* methods/el-get-elpa.el (el-get-elpa-update-available-p): Use
  `package-desc-version' if available.
* el-get-core.el (el-get-rmdir): Only call post-remove-fun if non-nil.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2013-07-19 15:37:50 +02:00
Rüdiger Sonderfeld
529623d8db Add guess-website function for ELPA method.
It supports GNU ELPA, Marmalade and MELPA.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2013-07-08 20:22:32 +02:00
Georges Dubus
5b5745a6ff Bypassed the check for dumb server for github to allow shallow clones. 2013-06-19 11:03:21 +02:00
Dimitri Fontaine
bddd695581 Merge pull request #1193 from rrthomas/http-fail
Handle HTTP errors in a user friendly way (report them).
2013-04-26 08:41:06 -07:00
Dimitri Fontaine
c2954adae4 Fix el-get-http-retrieve-callback to jump to beginning of buffer 2013-04-26 17:29:34 +02:00
Reuben Thomas
5d318414f1 Signal HTTP error when a file cannot be fetched 2013-04-21 19:02:59 +01:00
Dimitri Fontaine
c8468d11d8 Fix formating of el-get-elpa-build-local-recipes function. 2013-04-20 14:47:33 +02:00
Dimitri Fontaine
a07166c0a1 Merge pull request #1157 from ArthurTu/master
Add depends and repo information to auto-generated elpa recipes.
2013-04-20 05:45:03 -07:00
Arthur Tu
dc44097a91 Add depends and repo information to auto-generated elpa recipes 2013-04-12 16:12:37 +08:00
amazingjxq
c848a1d2f1 modify http method 2013-04-10 14:51:55 +08:00
Victor Deryagin
0a202ea35d changed mentions of 'README.asciidoc' to 'README.md' in source files 2013-04-01 15:46:34 +03:00
Victor Borja
66f6bec211 Git clone should ignore depth when using http transport.
Add failing test for issue #1028

Fixes #1028
2013-02-04 04:33:45 +00:00
Ryan C. Thompson
4b74707964 Update emacsmirror method for github method cleanup
Now it add a :pkgname property instead of just adding ":username
emacsmirror".

Also update the tests for the Github method
2012-10-06 18:13:32 -07:00
Damien Cassou
e6418c22e0 Issue #857: add error message for absent :pkgname
Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
2012-09-02 09:39:49 +02:00
Damien Cassou
15d3f8e490 Issue #857: simplify el-get-github-parse-user-and-repo
Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
2012-09-02 09:22:56 +02:00
Damien Cassou
d3c37f1829 Issue #857: ignore :url specification for github recipe
Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
2012-09-01 09:35:46 +02:00
Damien Cassou
f21ca1645a Issue #857: moving `el-get-github-url-private' around
Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
2012-08-31 11:18:13 +02:00
Damien Cassou
9e36f0eaf3 Issue #857: enhance `el-get-github-url-format' and simplify users
Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
2012-08-31 11:14:48 +02:00
Damien Cassou
d7cb8657e7 Issue #857: remove useless `el-get-guess-github-website'
Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
2012-08-31 10:47:37 +02:00
Damien Cassou
74979d1ea9 Issue #857: remove custom format for `el-get-github-default-url-type'
Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
2012-08-31 10:47:37 +02:00
Damien Cassou
fa55807644 Issue #857: use format' to simplify el-get-github-guess-website'
Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
2012-08-31 10:47:07 +02:00
Samuel Bronson
4edc39eea3 el-get-http-tar.el: Fix handling of single-file, no-directory tarballs.
Why anyone would use one is beyond me, but that's how rnc-mode is
packaged, so...
2012-08-16 17:00:05 -04:00
Stephan Baumeister
1519fec645 Fix resolution of elpa package directory
Use 'dir' command on Windows where 'ls' is not available.
2012-08-01 20:19:01 +02:00
Dimitri Fontaine
d4e568fd26 Attempt to fix #715. 2012-07-23 22:34:54 +02:00
Jonathan Leech-Pepin
09e643be4a Added "--nested" option to fossil open.
This allows for nested repositories, otherwise `fossil open` fails and an attempt to reinstall will remove the parent `.fossil` file as well, breaking the repository.
2012-07-09 11:40:05 -04:00
Jonathan Leech-Pepin
f8cefda346 Fixed file-coding of el-get-fossil.el to be utf-8-unix. 2012-07-09 11:38:03 -04:00
Ryan C. Thompson
4f7c13e9fe Merge branch 'http-tar-update-fix' 2012-06-18 17:02:20 -07:00
Ryan C. Thompson
57a70fef23 Propogate http-tar fix to http-zip 2012-06-18 16:57:29 -07:00
Ryan C. Thompson
54916dd5c8 Fix silent failures in update http-tar packages
Fixes #777.
2012-06-18 16:40:52 -07:00
Dimitri Fontaine
446e80e2e1 Merge pull request #772 from diasjorge/git-svn
Added checkout support for git svn
2012-06-18 09:08:54 -07:00
Jorge Dias
cd7ec79790 Added checkout support for git svn 2012-06-11 12:41:06 +02:00
Ryan C. Thompson
bd418720b5 Add :auto-generated property to auto-generated recipes
Currently this has no function other than documentation, but it could
be given a function later, such as allowing manually-written recipes
to take precedence over auto-generated ones.
2012-06-03 08:45:44 -07:00
Ryan C. Thompson
a1e3054b74 Ensure el-get doesn't check for update on uninstalled package 2012-05-13 16:14:14 -07:00
Ryan C. Thompson
7a81d5b1a6 Fix elpa-update-available-p
It was not properly retrieving the installed/available versions.
2012-05-13 16:11:58 -07:00