From 77e6ed8621b07539f2f819088ced34fcebc2bc94 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Tue, 8 Aug 2023 12:50:23 -0400 Subject: [PATCH] faketime --- .github/workflows/ci.yml | 2 +- tools/publish-real | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e465ea0..1cbcf5a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Install dependencies run: | - apt-get update && apt-get install --yes python3 git git-lfs createrepo-c + apt-get update && apt-get install --yes python3 git git-lfs createrepo-c faketime - name: Checkout uses: actions/checkout@v3 with: diff --git a/tools/publish-real b/tools/publish-real index 3abd0ba..43c1c18 100755 --- a/tools/publish-real +++ b/tools/publish-real @@ -35,6 +35,7 @@ def main(): print(f"Generating metadata for {folder}") args = ["createrepo_c"] if source_date_epoch: + args = ["faketime", f"@{source_date_epoch}", "createrepo_c"] # The and fields are set to the current UNIX time # unless we explicitly override them. In most cases we want to use # the current time except when we're doing reproducibility testing.