Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try harder to keep update cached recipe #2264

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

npostavs
Copy link
Collaborator

@npostavs npostavs commented Oct 18, 2015

Let the safe properties be updated even if others are not known to be safe. This is a prequisite to solving #2232. See also #2238 (comment). Fixes #2359.

Additionally, always use display-warning when properties can't be updated instead of hiding the warning in the *Messages* buffer. This can be suppressed by adding (el-get recipe-cache) to warning-suppress-types, which is the standard Emacs mechanism for supressing warnings, but it's not very discoverable so some users may find the warnings annoying. I added the actions needed to fix the problems into warnings themselves in the form of clickable links/buttons, so hopfully it won't be too bad.

There are errors during self update again, so I'll see if I can add some backwards compat code to smooth it out before merging this.


transition install seems okay, but I just got
el-get-describe-1: Symbol's function definition is void: el-get-insert-button
need to double check that.
fixed, was a stupid mistake.


el-get-compute-new-status is returning wrong result for the REQUIRED part. Fixed, and tests added.

The button types for install, update, and remove now use `el-get-pkg-op'
as their supertype, instead of `help-xref'; the buttons for jumping to
recipe file, and install directory use `el-get-file-jump'.  Since these
buttons don't actually affect the *Help* buffer, the xref functionality
was not useful.

Rename `el-get-describe-princ-button' -> `el-get-fmt-button'.  Instead
of requiring a regex to pick out the button label from its surrounding
text, pass the a format string and label directly.  It returns the
button to be inserted in the buffer, rather than inserting it directly.
Note that `princ'ing buttons does not work because princ doesn't pass
through string properties; simply change all princ to insert.
Never throw an error about not updated properties, just warn about them.
Also, allow prefix arguments to el-get-merge-properties-into-status to
specify updating as if doing update or reinstall operations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

el-get-bundle can not update :after method for existed package
1 participant