diff options
author | Styrsven <sven.a.jonsson@bahnhof.se> | 2017-12-06 17:48:08 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-12-08 14:40:24 +0100 |
commit | 38b70d3794cf0271525547d8d9573a0d98c3e0f4 (patch) | |
tree | b3c3c9661236238fdda0915adf77bde4e0def930 /xoptdiff | |
parent | 9475f2138405d9b3848fe9c08815ec5490a1fdcd (diff) | |
download | xtools-38b70d3794cf0271525547d8d9573a0d98c3e0f4.tar.gz xtools-38b70d3794cf0271525547d8d9573a0d98c3e0f4.tar.xz xtools-38b70d3794cf0271525547d8d9573a0d98c3e0f4.zip |
xoptdiff: check options for actual repos
Current version of xoptdiff compares options against the first found repo that contains a package. This patch makes it check against the repo that the package was installed from. Usefull when using repolock.
Diffstat (limited to 'xoptdiff')
-rwxr-xr-x | xoptdiff | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xoptdiff b/xoptdiff index edcb9ad..a3355d1 100755 --- a/xoptdiff +++ b/xoptdiff @@ -17,6 +17,8 @@ fi | while read pkg; do comm -23 <(./xbps-src show-options $pkg 2>/dev/null | sed -n '/\(ON\)/s/ *\([^ ]*\):.*/\1/p; /\(OFF\)/s/ *\([^ ]*\):.*/~\1/p;' | sort) \ - <(xbps-query -R -p build-options $pkg | tr ' ' '\n' | sort) | + <(xbps-query -R \ + --repository=$(xbps-query -p repository $pkg) \ + -p build-options $pkg | tr ' ' '\n' | sort) | tr '\n' ' ' | sed -n "s/^[^ ].*/$pkg$q\n/p" done |