aboutsummaryrefslogtreecommitdiff
path: root/.copr
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-04-21 10:08:18 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-04-21 21:38:10 +0000
commitcf1d884ffa45b342f38a78189bbd86186ce6cbfe (patch)
tree4c4ab790fcd22abb75272f5a5b433c5c3e70554c /.copr
parent69669cf394c25ceed85a05687fe46d5e64583f55 (diff)
downloadpodman-cf1d884ffa45b342f38a78189bbd86186ce6cbfe.tar.gz
podman-cf1d884ffa45b342f38a78189bbd86186ce6cbfe.tar.bz2
podman-cf1d884ffa45b342f38a78189bbd86186ce6cbfe.zip
Add seconds after epoch to copr rpms to tie break versioning
Signed-off-by: baude <bbaude@redhat.com> Closes: #654 Approved by: mheon
Diffstat (limited to '.copr')
-rw-r--r--.copr/prepare.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.copr/prepare.sh b/.copr/prepare.sh
index d33d55dc7..8d30b9755 100644
--- a/.copr/prepare.sh
+++ b/.copr/prepare.sh
@@ -10,7 +10,7 @@ git fetch --unshallow || :
COMMIT=$(git rev-parse HEAD)
COMMIT_SHORT=$(git rev-parse --short HEAD)
COMMIT_NUM=$(git rev-list HEAD --count)
-COMMIT_DATE=$(date --date="@$(git show -s --format=%ct HEAD)" +%Y%m%d)
+COMMIT_DATE=$(date +%s)
sed "s,#COMMIT#,${COMMIT},;
s,#SHORTCOMMIT#,${COMMIT_SHORT},;