Skip to content

Commit 87b9ee9

Browse files
committed
make-file-list: pass only one package at a time to pactree
The `pactree -u` command silently ignores every package name but the first one. We need to account for that, and as a consequence make sure that dependent packages are not listed twice. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent adf0ce1 commit 87b9ee9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

make-file-list.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@ die () {
88
test $# -gt 0 ||
99
die "Usage: $0 <package-name>..."
1010

11-
pacman -Ql $(pactree -u "$@") | grep -v '/$' | sed 's/^[^ ]* //'
11+
pacman -Ql $(for arg
12+
do
13+
pactree -u "$arg"
14+
done |
15+
sort |
16+
uniq) |
17+
grep -v '/$' |
18+
sed 's/^[^ ]* //'

0 commit comments

Comments
 (0)