Skip to content

Commit 46aa83d

Browse files
authored
Merge pull request #105 from archlinux/morten/fix-pkgsearch
package/pkgsearch: update for new bash and remove community
2 parents 4a43d80 + 7b4c3da commit 46aa83d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

package/pkgsearch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Flags:
1616
-q local packages
1717
-s print the package maintainers
1818
-l [limit] co-maintainer limit to filter on default: 1
19-
-f [repository] filter on repository, Default: core extra multilib community
19+
-f [repository] filter on repository, Default: core extra multilib
2020
-o list flagged packages
2121
-n use pkgname instead of pkgbase (not recommended as we sort away split pkgs)
2222
-h help messages
@@ -31,8 +31,8 @@ Example:
3131
Packages installed on the system from [core] with 1 maintainer
3232
$ pkgsearch -q -f core -l 1
3333
34-
Locally installed packages from [community], orphaned, and flagged out-of-date
35-
$ pkgsearch -q -f community -l 0 -m orphan -o
34+
Locally installed packages from [extra], orphaned, and flagged out-of-date
35+
$ pkgsearch -q -f extra -l 0 -m orphan -o
3636
3737
EOF
3838
}
@@ -61,13 +61,13 @@ while true; do
6161
done
6262

6363
find_packages(){
64-
test ${#filter} -eq 0 && filter=(core extra community multilib)
64+
test ${#filter} -eq 0 && filter=(core extra multilib)
6565
if ((local_packages)); then
6666
# shellcheck disable=SC2046
6767
expac -S "%r %a %n %e" $(expac %n) | grep -P "^($(tr ' ' '|' <<< "${filter[*]}")) "
6868
else
6969
filter=("${filter[@]^}") # Uppercase the repo names
70-
filter=("${filter[@]/#/&repo=}") # Prepend &repo= to all elements
70+
filter=("${filter[@]/#/\&repo=}") # Prepend &repo= to all elements
7171
query="?${maintainer_query}${packager_query}$(printf "%s" "${filter[@]}")&flagged=$out_of_date"
7272
curl -s "https://archlinux.org/packages/search/json/$query" \
7373
| jq -r '.results[] | "\(.repo) \(.arch) \(.pkgname) \(.pkgbase)"' | sort | uniq

0 commit comments

Comments
 (0)