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

Support xbps files (void linux packages) #685

Closed
tornaria opened this issue Jan 19, 2022 · 1 comment
Closed

Support xbps files (void linux packages) #685

tornaria opened this issue Jan 19, 2022 · 1 comment

Comments

@tornaria
Copy link
Contributor

Describe the feature/solution

Support for void linux packages, namely xbps files (*.xbps). These are plain old tar files compressed with zstd, so it's trivial to support. In fact I monkey patched my system version of bash-completion-2.11 as shown below, and it works fine.

--- bash-completion-2.11_2/usr/share/bash-completion/completions/tar
+++ /usr/share/bash-completion/completions/tar	2021-12-23 10:25:47.636095345 -0300
@@ -422,7 +422,7 @@
 
 __tar_detect_ext()
 {
-    local tars='@(@(tar|gem|spkg)?(.@(Z|[bgx]z|bz2|lz?(ma|o)|zst))|t@([abglx]z|b?(z)2|zst))'
+    local tars='@(@(tar|gem|spkg|xbps)?(.@(Z|[bgx]z|bz2|lz?(ma|o)|zst))|t@([abglx]z|b?(z)2|zst))'
     ext="$tars"
 
     case "$tar_mode_arg" in

Maintenance (please complete the following information)

  • [x ] This is a request for new completion
@tornaria tornaria changed the title Support xbps files Support xbps files (void linux packages) Jan 19, 2022
scop pushed a commit that referenced this issue Jan 23, 2022
scop added a commit that referenced this issue Jan 23, 2022
Closes #685

Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
@scop
Copy link
Owner

scop commented Jan 23, 2022

Thanks! A bit modified version included in #688

@scop scop closed this as completed in 5b842ff Jan 25, 2022
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

No branches or pull requests

2 participants