Gehel has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/389932 )
Change subject: archiva: generate git-fat sha1 for .tar.gz and .whl
......................................................................
archiva: generate git-fat sha1 for .tar.gz and .whl
Change-Id: If0cacbddbe66d1a47c9a8a14d01bceb7b332bee3
---
M modules/archiva/files/archiva-gitfat-link
1 file changed, 4 insertions(+), 3 deletions(-)
Approvals:
Giuseppe Lavagetto: Looks good to me, but someone else must approve
EBernhardson: Looks good to me, but someone else must approve
jenkins-bot: Verified
Gehel: Looks good to me, approved
diff --git a/modules/archiva/files/archiva-gitfat-link
b/modules/archiva/files/archiva-gitfat-link
index 300c835..57b6ff5 100755
--- a/modules/archiva/files/archiva-gitfat-link
+++ b/modules/archiva/files/archiva-gitfat-link
@@ -12,8 +12,9 @@
script_name=$(basename ${0})
echo "
${script_name} <artifact-repository-path> <git-fat-path> [--real-paths]
- Creates symlinks from all .jars, .wars and .zips found in
<artifact-repository-path>
- to sha1 filenames in <git-fat-path>.
+ Creates symlinks from all .jars, .wars and .zips and some other types of
+ archives found in <artifact-repository-path> to sha1 filenames in
+ <git-fat-path>.
If --real-paths is passed as the last argument, the full absolute
real paths to targets in artifact-repository-path will be used
@@ -63,7 +64,7 @@
# alphanumerically latest jar linked last.
# The .indexer directory is used by archiva to store its indexes, there is no
# need to hash the files there.
-find $artifact_repository_path -type f \( -name "*.jar" -o -name "*.war" -o
-name "*.zip" \) ! -path "*/.indexer/*" | sort | xargs shasum | while read
line; do
+find $artifact_repository_path -type f \( -name "*.jar" -o -name "*.war" -o
-name "*.zip" -o -name "*.tar.gz" -o -name "*.whl" \) ! -path "*/.indexer/*" |
sort | xargs shasum | while read line; do
# get the filenames and their sha1 sums out of the shasum output
sha1=$(echo ${line} | awk '{print $1}');
file=$(echo ${line} | awk '{print $2}');
--
To view, visit https://gerrit.wikimedia.org/r/389932
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If0cacbddbe66d1a47c9a8a14d01bceb7b332bee3
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Gehel <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: Gehel <[email protected]>
Gerrit-Reviewer: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits