-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Simplify+optimize #856
Simplify+optimize #856
Conversation
use simpler constructs, avoid calls to external apps, compact some statements to reduce debugging (-x) output
Also remove exports only performed with --quiet; preparing for `eval`
Could be installed but not configured
Set trap to ensure lock removal; warn if cache locked
less -x output too
use grep -e
Hm, I got Error: Resource not accessible by integration... Not sure what that means |
Thanks for this excellent and instructive work. Don't worry about the error you mentioned: the actions seem to be broken lately and need some attention and revision. |
@@ -471,18 +440,17 @@ function validate_deb() { | |||
# If the method is github and the cache file is empty, ignore the package | |||
# The GitHub API is rate limit has likely been reached | |||
if [ "${METHOD}" == github ] && [ ! -s "${CACHE_FILE}" ]; then | |||
if [ "${ACTION}" != "prettylist" ] && [ "${ACTION}" != "remove" ] && [ "${ACTION}" != "purge" ]; then | |||
if ! [[ ' prettylist remove purge ' =~ " ${ACTION} " ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Limited operational testing so far
Looking at things I rarely use part 1:
|
Yup — last commit (1f4581b), which purported to fix |
Hi, I've found
deb-get
really useful and played with it for a bit.I've tried to optimize performance (by avoiding repeated external calls and caching some results — e.g.
list
is about 4 times faster), fix some (minor) bugs and simplify some shell constructs (e.g. replacinggrep | cut
withsed ...
), fix someshellcheck
warnings etc.I've tried to make the diffs between commits as small / clear as possible (as opposed to a big rewrite), hence the number of commits.
I've tested it as much as I could on my normal workflows, hopefully github-actions can also help here (I'm not sure how to run testing on my fork).