Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
b47fe819
Commit
b47fe819
authored
Apr 04, 2015
by
Artur Malabarba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
emacs-lisp/package.el: Prevent outdated downloads-in-progress.
parent
16eec6fc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/emacs-lisp/package.el
lisp/emacs-lisp/package.el
+9
-1
No files found.
lisp/ChangeLog
View file @
b47fe819
...
...
@@ -14,6 +14,9 @@
`package-archives' to `package--downloads-in-progress' instead of
overwriting it.
(package--with-work-buffer-async): Protect macro arguments.
(package--download-one-archive)
(package--download-and-read-archives): Prevent
downloads-in-progress list from becoming outdated.
2015-04-04 Michael Albinus <michael.albinus@gmx.de>
...
...
lisp/emacs-lisp/package.el
View file @
b47fe819
...
...
@@ -1397,8 +1397,12 @@ similar to an entry in `package-alist'. Save the cached copy to
;; If we care, check it (perhaps async) and *then* write the file.
(
package--check-signature
location
file
content
async
;; This function will be called after signature checking.
(
lambda
(
&optional
good-sigs
)
(
unless
(
or
good-sigs
(
eq
package-check-signature
'allow-unsigned
))
;; Even if the sig fails, this download is done, so
;; remove it from the in-progress list.
(
package--update-downloads-in-progress
archive
)
(
error
"Unsigned archive `%s'"
name
))
;; Write out the archives file.
(
write-region
content
nil
local-file
nil
'silent
)
...
...
@@ -1419,7 +1423,11 @@ perform the downloads asynchronously."
package--downloads-in-progress
))
(
dolist
(
archive
package-archives
)
(
condition-case-unless-debug
nil
(
package--download-one-archive
archive
"archive-contents"
async
)
(
package--download-one-archive
archive
"archive-contents"
;; Called if the async download fails
(
when
async
(
lambda
()
(
package--update-downloads-in-progress
archive
))))
(
error
(
message
"Failed to download `%s' archive."
(
car
archive
))))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment