From 38b70d3794cf0271525547d8d9573a0d98c3e0f4 Mon Sep 17 00:00:00 2001 From: Styrsven Date: Wed, 6 Dec 2017 17:48:08 +0100 Subject: 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. --- xoptdiff | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1