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

Use unique names for bulk update commands #39969

Closed
wants to merge 1 commit into from

Conversation

heindsight
Copy link
Contributor

A regression introduced in 4c43245 (#37700) is causing the xbps-src update-sys command to skip the final step of installing the updated packages.

This happens because the cmd variable name clashes with a loop variable used in common/environment/setup/install.sh script line 16. Thus the "$cmd" == installed comparison (common/xbps-src/shutils/bulk.sh line 122) fails and the installation step is skipped.

Using unique variable names in bulk.sh avoids this problem.

Testing the changes

  • I tested the changes in this PR: YES

A regression introduced in 4c43245 is causing the 'xbps-src update-sys'
command to skip the final step of installing the updated packages.

This happens because the `cmd` variable name clashes with a loop
variable used in common/environment/setup/install.sh script (line 16).
Thus the `"$cmd" == installed` comparison
(common/xbps-src/shutils/bulk.sh line 122) fails and the installation
step is skipped.

Using unique variable names in `bulk.sh` avoids this problem.
@Duncaen Duncaen closed this in 7c3f5a1 Oct 15, 2022
@Duncaen
Copy link
Member

Duncaen commented Oct 15, 2022

Thank you for finding this, i hate shell lol.

@heindsight heindsight deleted the fix-update-sys branch October 15, 2022 14:08
pfpulux pushed a commit to pfpulux/void-packages that referenced this pull request Oct 25, 2022
A regression introduced in 4c43245 is causing the 'xbps-src update-sys'
command to skip the final step of installing the updated packages.

This happens because the `cmd` variable name clashes with a loop
variable used in common/environment/setup/install.sh script (line 16).
Thus the `"$cmd" == installed` comparison
(common/xbps-src/shutils/bulk.sh line 122) fails and the installation
step is skipped.

Using unique variable names in `bulk.sh` avoids this problem.

Closes: void-linux#39969 [via git-merge-pr]
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.

None yet

2 participants