$output variable from output=kmod-framework-laptop-6.12.9-200.fc41.x86_64-0.0.git.172.3f9ba585-1.fc41.x86_64output=package /var/cache/akmods/framework-laptop/kmod-framework-laptop-6.12.9-200.fc41.x86_64-0.0.git.172.3f9ba585-1.fc41.x86_64 is not installeddual-sign.sh script which calls rpmrebuild to use local path, not fully qualified path... testing that now-printf "%f\n" will give us only the file name.$ git diff rpmrebuild-2.17 rpmrebuild-2.20diff --git a/src/rpmrebuild.sh b/src/rpmrebuild.sh
index db82ffd..40fc816 100755
--- a/src/rpmrebuild.sh
+++ b/src/rpmrebuild.sh
@@ -93,7 +93,12 @@ function IsPackageInstalled
Debug '(IsPackageInstalled)'
# test if package exists
local output
- output=$( rpm --query "${RPMREBUILD_PAQUET}" 2>&1 ) # Don't return here - use output
+ local paquet
+ # because the command 'rpm -q foo.1-1.noarch.rpm' return 0
+ # but 'rpm -q foo.1-1.noarch' return 1
+ # in general rpm file ends with .rpm
+ paquet=$( echo ${RPMREBUILD_PAQUET} | sed 's/\.rpm//' )
+ output=$( rpm --query "${paquet}" 2>&1 ) # Don't return here - use output
if [ "$?" -eq 1 ]
then$outputoutput=kmod-framework-laptop-6.12.9-200.fc41.x86_64-0.0.git.172.3f9ba585-1.fc41.x86_64output=package /var/cache/akmods/framework-laptop/kmod-framework-laptop-6.12.9-200.fc41.x86_64-0.0.git.172.3f9ba585-1.fc41.x86_64 is not installed/usr/lib/rpmrebuild/rpmrebuild.sh: ERROR: (IsPackageInstalled) /var/cache/akmods/framework-laptop/kmod-framework-laptop-6.12.9-200.fc41.x86_64-0.0.git.172.3f9ba585-1.fc41.x86_64.rpm package is not installeddual-sign.shrpmrebuild-printf "%f\n"