Navigation Menu

Skip to content

Commit

Permalink
gpg signing only once.
Browse files Browse the repository at this point in the history
  • Loading branch information
y-ken committed Jun 7, 2013
1 parent fd164eb commit 3466500
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/yum/sign-rpm.sh
Expand Up @@ -21,9 +21,15 @@ 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 3466500

Please sign in to comment.