diff --git a/dev-support/bin/create-release b/dev-support/bin/create-release
index f4851d1c76..39a5d0d319 100755
--- a/dev-support/bin/create-release
+++ b/dev-support/bin/create-release
@@ -651,10 +651,12 @@ function signartifacts
big_console_header "Signing the release"
- for i in ${ARTIFACTS_DIR}/*; do
+ run cd "${ARTIFACTS_DIR}"
+ for i in *; do
${GPG} --use-agent --armor --output "${i}.asc" --detach-sig "${i}"
sha512sum --tag "${i}" > "${i}.sha512"
done
+ run cd "${BASEDIR}"
if [[ "${ASFRELEASE}" = true ]]; then
echo "Fetching the Apache Hadoop KEYS file..."
diff --git a/hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml b/hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml
index 7c725d73e0..8716942093 100644
--- a/hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml
+++ b/hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml
@@ -56,6 +56,7 @@
**/build/**
**/file:/**
**/SecurityAuth.audit*
+ patchprocess/**