mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-29 13:08:51 +08:00
92a39c84fe
- If the file was changed on the HTTP server before you restarted emacs, the checksum wouldn't be recomputed because it would be taken from the cache. - The cached value was wrongly including the HTTP headers in the computation. Added a test for this. - Computing a SHA1 is not so expensive that it needs the complication of caching. * methods/el-get-http.el (el-get-http-checksums): remove. (el-get-http-retrieve-callback): don't compute hash on HTTP headers. (el-get-http-compute-checksum): always compute a fresh hash. * test/el-get-issue-1752.el: new test.
9 lines
246 B
EmacsLisp
9 lines
246 B
EmacsLisp
(setq
|
|
el-get-sources
|
|
'((:name el-get-install
|
|
:type http
|
|
:url "https://github.com/dimitri/el-get/raw/master/el-get-install.el"
|
|
:checksum "b3a5ada02e27597894210fa1ae2c857579a457ae")))
|
|
|
|
(el-get 'sync 'el-get-install)
|