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

pkgm update form breaks with spaces #408

Closed
jardon opened this issue Oct 16, 2024 · 0 comments · Fixed by #413
Closed

pkgm update form breaks with spaces #408

jardon opened this issue Oct 16, 2024 · 0 comments · Fixed by #413
Labels
bug Something isn't working

Comments

@jardon
Copy link
Member

jardon commented Oct 16, 2024

Input to the update form for the package manager update is handled incorrectly as spaces in the input split to the following fields.

apx pkgmanagers update yum
 INFO  Enter new command for 'autoRemove' (leave empty to keep 'yum autoremove'):

 INFO  Enter new command for 'clean' (leave empty to keep 'yum clean'):

 INFO  Enter new command for 'install' (leave empty to keep 'yum update -v'):
yum install -v
 INFO  Enter new command for 'list' (leave empty to keep 'yum list'):
 INFO  Enter new command for 'purge' (leave empty to keep 'yum remove'):
 INFO  Enter new command for 'remove' (leave empty to keep 'yum remove'):

 INFO  Enter new command for 'search' (leave empty to keep 'yum search'):

 INFO  Enter new command for 'show' (leave empty to keep 'yum info'):

 INFO  Enter new command for 'update' (leave empty to keep 'yum upgrade --refresh'):

 INFO  Enter new command for 'upgrade' (leave empty to keep 'yum upgrade'):

 INFO  Updated package manager 'yum'.
jardon@lagann:~/Projects/apx$ apx pkgmanagers show yum
┼┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ Name       ┊ yum                   ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ NeedSudo   ┊ false                 ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ AutoRemove ┊ yum autoremove        ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ Clean      ┊ yum clean             ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ Install    ┊ yum                   ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ List       ┊ nstall                ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ Purge      ┊ v                     ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ Remove     ┊ yum remove            ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ Search     ┊ yum search            ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ Show       ┊ yum info              ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ Update     ┊ yum upgrade --refresh ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ Upgrade    ┊ yum upgrade           ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼

Wrapping in quotes nets the same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants