run_upload_packages.py: give createrepo a cache directory for its
authorWard Vandewege <ward@curii.com>
Fri, 29 Jan 2021 15:26:15 +0000 (10:26 -0500)
committerWard Vandewege <ward@curii.com>
Fri, 29 Jan 2021 15:26:15 +0000 (10:26 -0500)
package checksums, and tell it to use a simple file size/mtime
comparison instead of recalculating the hashes, when adding a package to
the repo.

This should speed up rpm package publishing.

No issue #

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

jenkins/run_upload_packages.py

index daa72353773d1492d8eebe12c94b719b630a6cc0..a161c2cefd8dbb86b732e69c5a565134dbba8481 100755 (executable)
@@ -237,7 +237,7 @@ cd "$1"; shift
 REPODIR=$1; shift
 rpmsign --addsign "$@" </dev/null
 mv "$@" "$REPODIR"
-createrepo "$REPODIR"
+createrepo -c ~/.createrepo-cache --update "$REPODIR"
 """
     REPO_ROOT = '/var/www/rpm.arvados.org/'