feat: handle subpackages (e.g. jdk/8)

This commit is contained in:
xeruf 2022-07-09 20:45:39 +02:00
parent 9739fea99c
commit 286d294e9f
7 changed files with 9 additions and 6 deletions

View file

@ -1,2 +1,5 @@
java git
jdk
jdk/8
gradle
intellijidea-ultimate intellijidea-ultimate

View file

@ -1,4 +0,0 @@
git
jdk8
openjdk
gradle

View file

@ -18,7 +18,7 @@ getcontent() {
# Get available package entries for given package # Get available package entries for given package
getentries() { getentries() {
cat "$home/handlers.available" | while read handler cat "$home/handlers.available" | while read handler
do find "$home/packages/$1/" -type f -name "$handler*" 2>/dev/null do find "$home/packages/$1/" -depth -type f -name "$handler*" | tac 2>/dev/null
done done
} }

1
packages/jdk/8/arch Normal file
View file

@ -0,0 +1 @@
jdk8-openjdk

View file

@ -0,0 +1 @@
jdk8

1
packages/jdk/arch Normal file
View file

@ -0,0 +1 @@
jdk-openjdk

1
packages/jdk/chocolatey Normal file
View file

@ -0,0 +1 @@
openjdk