Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #3 from y-ken/rpm_gpg_signature
Browse files Browse the repository at this point in the history
Addding GPG signature only for unsigned rpms.

Patch by Y.Kentaro. Thanks!!!
  • Loading branch information
kou committed Jun 8, 2013
2 parents fd164eb + c426599 commit 8ef8459
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/yum/sign-rpm.sh
Expand Up @@ -21,9 +21,16 @@ run()
fi
}

get_unsigned_rpm()
{
files=$(rpm --checksig $1 | grep -v 'gpg OK' | cut -d":" -f1)
echo $files
}
export -f get_unsigned_rpm

rpms=""
for distribution in ${DISTRIBUTIONS}; do
rpms="${rpms} $(echo ${DESTINATION}${distribution}/*/*/*/*.rpm)"
rpms="${rpms} $(find ${DESTINATION}${distribution} -name '*.rpm' -exec sh -c 'get_unsigned_rpm {}' \;)"
done

echo "NOTE: YOU JUST ENTER! YOU DON'T NEED TO INPUT PASSWORD!"
Expand Down

0 comments on commit 8ef8459

Please sign in to comment.