about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xxpkgdiff4
1 files 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