diff --git a/lib/common.sh b/lib/common.sh
index 780962ceb3a1ccd0e6d9a3332bf48c006e927711..387fb8c5660e82b4e79951369bb518125d213b46 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -180,7 +180,7 @@ pkgver_equal() {
 find_cached_package() {
 	local searchdirs=("$PWD" "$PKGDEST") results=()
 	local targetname=$1 targetver=$2 targetarch=$3
-	local dir pkg pkgbasename pkgparts name ver rel arch size r results
+	local dir pkg pkgbasename name ver rel arch r results
 
 	for dir in "${searchdirs[@]}"; do
 		[[ -d $dir ]] || continue