improve next-in-path handling, fix line endings
This commit is contained in:
parent
f546b49599
commit
31a59f0207
14 changed files with 62 additions and 48 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/zsh
|
||||
#dep:xi xbps-checkvers ag
|
||||
#dep:xi xbps-checkvers rg
|
||||
|
||||
source ${$(realpath "$0"):h:h}/lib/common.zsh
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ if [[ ! -d $PACKAGES_DIR ]]; then
|
|||
fi
|
||||
if [[ ! -d $PACKAGES_DIR ]]; then
|
||||
<<-ERR
|
||||
void-packages repo not found. Either set VOID_PACKAGES_DIR or place it at one of the
|
||||
void-packages repo not found. Either set VOID_PACKAGES_DIR or place it at one of the
|
||||
following locations:
|
||||
- ${XDG_DATA_HOME:-$HOME/.local/share}/void-packages
|
||||
- $HOME/void-packages
|
||||
|
|
@ -29,10 +29,10 @@ if [[ $help ]]; then
|
|||
Usage: xrestricted list
|
||||
xrestricted update
|
||||
xrestricted install <PACKAGE...>
|
||||
|
||||
|
||||
Install restricted packages from a void source repo. Detected repo at:
|
||||
$VOID_PACKAGES_DIR
|
||||
|
||||
|
||||
Common options:
|
||||
-j, --jobs N Number of jobs to use
|
||||
-b, --branch B Use given branch instead of master
|
||||
|
|
@ -62,7 +62,7 @@ else
|
|||
succeed "on $branch"
|
||||
fi
|
||||
|
||||
packages=( $(ag -G 'template' restricted=yes srcpkgs/ | cut -d/ -f 2 | sort -u) )
|
||||
packages=( $(rg -g 'template' restricted=yes srcpkgs/ | cut -d/ -f 2 | sort -u) )
|
||||
|
||||
version() { grep -Poe '(?<=^version=).*$' srcpkgs/$1/template }
|
||||
install_restricted() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue