From 9469a0daba9cdf56a390abf18bb7729c7469bc2d Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 18 Apr 2022 21:13:51 -0400 Subject: xpkgdiff: run an in-memory sync to allow use of XBPS_TARGET_ARCH If the user would like to run a diff for a package on a certain arch, XBPS_TARGET_ARCH=other-arch xpkgdiff -f foo will now work properly, even if the user does not have a local repodata for that arch already. --- xpkgdiff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpkgdiff b/xpkgdiff index d2acf8b..9072b34 100755 --- a/xpkgdiff +++ b/xpkgdiff @@ -57,8 +57,8 @@ REPO=" pkg="$1" -if xbps-query -R $pkg >/dev/null; then - xbps-query -R $QUERY $pkg | $SORT > "$TMPDIR/${pkg}.repo" +if xbps-query -MR $pkg >/dev/null; then + xbps-query -MR $QUERY $pkg | $SORT > "$TMPDIR/${pkg}.repo" else echo "Package '$pkg' not found in repositories" > "$TMPDIR/${pkg}.repo" fi -- cgit 1.4.1