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

Fix parsing of unversioned cask packages. #6

Merged
merged 1 commit into from Sep 23, 2016

Conversation

kdeldycke
Copy link
Owner

@kdeldycke kdeldycke commented Sep 23, 2016

Unversioned cask packages are not properly parsed.

If cask outputs:

$ brew cask list --versions
bitcoin-core 
$

Then mpm fails to parse the output because of trailing spaces clean up:

Traceback (most recent call last):
  File "./meta_package_manager.7h.py", line 619, in <module>
    print_menu()
  File "./meta_package_manager.7h.py", line 568, in print_menu
    map(methodcaller('sync'), managers)
  File "./meta_package_manager.7h.py", line 243, in sync
    name, versions = installed_pkg.split(' ', 1)
ValueError: need more than 1 value to unpack

This PR fix the issue:
screen shot 2016-09-23 at 12 43 57

@github-actions
Copy link
Contributor

github-actions bot commented Oct 1, 2020

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 1, 2020
@kdeldycke kdeldycke added 🐛 bug Something isn't working, or a fix is proposed 📦 manager: cask cask 🔌 BitBar plugin 🖥 platform: macOS macOS labels Dec 20, 2020
@kdeldycke kdeldycke added 🔌 bar-plugin Xbar/SwiftBar plugin code, documentation and features and removed 🔌 BitBar plugin labels Apr 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔌 bar-plugin Xbar/SwiftBar plugin code, documentation and features 🐛 bug Something isn't working, or a fix is proposed 📦 manager: cask cask 🖥 platform: macOS macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant