about summary refs log tree commit diff
diff options
context:
space:
mode:
authorclassabbyamp <dev@kb6.ee>2022-03-31 14:11:54 -0400
committerToyam Cox <aviator45003@gmail.com>2022-03-31 14:36:10 -0400
commitc68bde5b9436d2608098ecc98afb9cde84467bd4 (patch)
tree9f8fe0eeb514ae42cff1e7ca5e7672336ab30243
parentdf3d395e1309aec0948ce6a364d92aba6cdc26bf (diff)
downloadxtools-c68bde5b9436d2608098ecc98afb9cde84467bd4.tar.gz
xtools-c68bde5b9436d2608098ecc98afb9cde84467bd4.tar.xz
xtools-c68bde5b9436d2608098ecc98afb9cde84467bd4.zip
xpkgdiff: fix check for package existence
-rwxr-xr-xxpkgdiff2
1 files changed, 1 insertions, 1 deletions
diff --git a/xpkgdiff b/xpkgdiff
index 4503892..d2acf8b 100755
--- a/xpkgdiff
+++ b/xpkgdiff
@@ -57,7 +57,7 @@ REPO="
 
 pkg="$1"
 
-if xbps-query $pkg >/dev/null; then
+if xbps-query -R $pkg >/dev/null; then
 	xbps-query -R $QUERY $pkg | $SORT > "$TMPDIR/${pkg}.repo"
 else
 	echo "Package '$pkg' not found in repositories" > "$TMPDIR/${pkg}.repo"