Skip to content

Commit

Permalink
Merge pull request #60 from archlinux/rebuild-todo-orphan
Browse files Browse the repository at this point in the history
rebuild-todo: allow filtering on orphan packages
  • Loading branch information
jelly committed Nov 28, 2022
2 parents 1872d08 + 3c6dc2e commit 9de95da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/rebuild-todo
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ usage() {
OPTIONS
-m, --message Sets the commitpkg message. Default is todo list title
-i, --ignore Give one or more pkgbases to ignore
-f, --filter Filter for one or more maintainers
-f, --filter Filter for one or more maintainers (orphan for orphan packages)
-e, --edit Edit PKGBUILD before building. Default when todo type is "Task"
-h, --help Show this help text
--dry-run Show the offload-build and commitpkg being ran
Expand Down Expand Up @@ -193,7 +193,7 @@ if [[ "$URL" != "" ]]; then
| .packages[]
| select(.status_str == "Incomplete" )
| select([.repo] | inside($repo))
| select(($maint[0] == "") or select(.maintainers | any([.] | inside($maint))))
| select(($maint[0] == "") or (($maint[0] == "orphan") and .maintainers == []) or (select(.maintainers | any([.] | inside($maint)))))
| "\(.pkgbase)"' \
- <<< "$json" | sort -u)

Expand Down

0 comments on commit 9de95da

Please sign in to comment.