Repository: aurora-packaging
Updated Branches:
  refs/heads/master 9f9118858 -> 712ca6158


Only include basenames in package checksums

Before:
713c53c6ace65683bbb6f6e72881442cc4f7a243  
/home/xxx/zzz/yyy/aurora-packaging/artifacts/aurora-debian-jessie/dist/aurora-tools_0.16.0-snapshot_amd64.deb

After:
713c53c6ace65683bbb6f6e72881442cc4f7a243  aurora-tools_0.16.0-snapshot_amd64.deb

Bugs closed: AURORA-1815

Reviewed at https://reviews.apache.org/r/55510/


Project: http://git-wip-us.apache.org/repos/asf/aurora-packaging/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora-packaging/commit/c75104f5
Tree: http://git-wip-us.apache.org/repos/asf/aurora-packaging/tree/c75104f5
Diff: http://git-wip-us.apache.org/repos/asf/aurora-packaging/diff/c75104f5

Branch: refs/heads/master
Commit: c75104f53b752968898b8c4c4964f5c8dc046abd
Parents: 9f91188
Author: Stephan Erb <[email protected]>
Authored: Sat Jan 14 14:21:30 2017 +0100
Committer: Stephan Erb <[email protected]>
Committed: Sat Jan 14 14:21:30 2017 +0100

----------------------------------------------------------------------
 build-support/release/release-candidate | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/c75104f5/build-support/release/release-candidate
----------------------------------------------------------------------
diff --git a/build-support/release/release-candidate 
b/build-support/release/release-candidate
index 98df824..b3ebe91 100755
--- a/build-support/release/release-candidate
+++ b/build-support/release/release-candidate
@@ -38,15 +38,17 @@ function sign_artifacts() {
   local dist_dir="$2"
   local stage_dir="$3"
 
-  find "${dist_dir}" -maxdepth 1 -type f | while read file; do
-    local name=$(basename "${file}")
-    # Sign the tarball.
-    gpg --armor --output "${stage_dir}/${name}.asc" --detach-sig "${file}"
-
-    # Create the checksums
-    gpg --print-md MD5 "${file}" > "${stage_dir}/${name}.md5"
-    shasum "${file}" > "${stage_dir}/${name}.sha"
-  done
+  pushd ${dist_dir}
+    find . -maxdepth 1 -type f | while read file; do
+      local name=$(basename "${file}")
+      # Sign the tarball.
+      gpg --armor --output "${stage_dir}/${name}.asc" --detach-sig "${name}"
+
+      # Create the checksums
+      gpg --print-md MD5 "${name}" > "${stage_dir}/${name}.md5"
+      shasum "${name}" > "${stage_dir}/${name}.sha"
+    done
+  popd
 }
 
 function zip_artifacts() {

Reply via email to