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

bin/xbps-alternatives: add repository mode to list repo alternatives #340

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Duncaen
Copy link
Member

@Duncaen Duncaen commented Oct 14, 2020

No description provided.

@Duncaen
Copy link
Member Author

Duncaen commented Oct 14, 2020

xbps-alternatives -Rl produces https://gist.github.com/Duncaen/578435c3619c372ee2463ef79dbd5edb.

This also works for specific groups:

$ ./bin/xbps-alternatives/xbps-alternatives -Rlg vim
vim
 - gvim-8.2.1666_2
  - vim:/usr/bin/gvim
 - gvim-huge-8.2.1666_2
  - vim:/usr/bin/gvim-huge
 - neovim-0.4.4_1
  - vim:/usr/bin/nvim
  - vim.1:/usr/share/man/man1/nvim.1
 - vim-8.2.1666_2
  - vim:/usr/bin/vim-normal
 - vim-huge-8.2.1666_2
  - vim:/usr/bin/vim-huge
 - vim-x11-8.2.1666_2
  - vim:/usr/bin/vim-x11
$ # without -R
$ ./bin/xbps-alternatives/xbps-alternatives -lg vim
vim
 - vim (current)
  - vim:/usr/bin/vim-normal

@lgtm-com
Copy link

lgtm-com bot commented Oct 14, 2020

This pull request introduces 1 alert when merging 8052917 into 05ff04a - view on LGTM.com

new alerts:

  • 1 for Empty branch of conditional

@Duncaen Duncaen force-pushed the alternatives-list branch from 281e1b7 to 1932fff Compare August 31, 2023 15:25
@classabbyamp
Copy link
Member

this looks like it would fix my issue (#499), but it just exits without doing anything:

$ LD_LIBRARY_PATH=./lib/ bin/xbps-alternatives/xbps-alternatives -dRlg vim 
[DEBUG] XBPS: 0.60 API: 20200423 GIT: a9c3af43
[DEBUG] Processing configuration directory: /usr/local/etc/xbps.d
[DEBUG] Processing system configuration directory: /usr/local/share/xbps.d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants