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

"Failed to update." message on every install and remove, but gist is correctly updated #2

Open
BennyAJ opened this issue May 31, 2017 · 1 comment

Comments

@BennyAJ
Copy link

BennyAJ commented May 31, 2017

Every time I install or remove a package, the script says "Failed to update" and pacman outputs "error: command failed to execute correctly." The gist is still updating correctly, so this is mostly a minor annoyance. The script runs for 15-20 seconds before outputting that it failed, so maybe it's getting stuck somewhere? Updating a package doesn't cause this problem. AUR packages also don't cause it.

@Ventto
Copy link
Owner

Ventto commented May 31, 2017

Thanks for the feedback.

Indeed. Updating a package doesn't cause this problem. If there is nothing to add to the gist, the diff returns true and doesn't go to the following wrong expression that causes "Failed to update" if the command passes. You come across this case by adding or removing a non-AUR package.

I fixed it. I'll update the package.

The script runs for 15-20 seconds before outputting that it failed, so maybe it's getting stuck somewhere?

Nevertheless, I don't know why it's so slow.

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

No branches or pull requests

2 participants