diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2018-10-07 00:07:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-07 00:07:26 -0700 |
commit | 141a1327fbb2d6e476d959ba9a23d01e1200a9fc (patch) | |
tree | 7db13b1ea34d59ec60fa2725b2f6363ea3c0d818 /.copr/prepare.sh | |
parent | d137b0908c3f9ee2ee05364128682e7053294260 (diff) | |
parent | c6a6c06435516f6438a1dfe739845ba6490e0513 (diff) | |
download | podman-141a1327fbb2d6e476d959ba9a23d01e1200a9fc.tar.gz podman-141a1327fbb2d6e476d959ba9a23d01e1200a9fc.tar.bz2 podman-141a1327fbb2d6e476d959ba9a23d01e1200a9fc.zip |
Merge pull request #1573 from baude/readdgolang
re-add BR for golang compiler to contrib/spec/podman.spec.in
Diffstat (limited to '.copr/prepare.sh')
-rw-r--r-- | .copr/prepare.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.copr/prepare.sh b/.copr/prepare.sh index 8ec38f2df..1ad29da36 100644 --- a/.copr/prepare.sh +++ b/.copr/prepare.sh @@ -1,5 +1,6 @@ #!/bin/sh -euf set -x +OS_TEST=${OS_TEST:=0} if [ ! -e /usr/bin/git ]; then dnf -y install git-core @@ -11,6 +12,9 @@ COMMIT=$(git rev-parse HEAD) COMMIT_SHORT=$(git rev-parse --short=8 HEAD) COMMIT_NUM=$(git rev-list HEAD --count) COMMIT_DATE=$(date +%s) +BR="#BuildRequires: golang-bin" +NEWBR="BuildRequires: golang-bin" + sed "s,#COMMIT#,${COMMIT},; s,#SHORTCOMMIT#,${COMMIT_SHORT},; @@ -18,6 +22,10 @@ sed "s,#COMMIT#,${COMMIT},; s,#COMMITDATE#,${COMMIT_DATE}," \ contrib/spec/podman.spec.in > contrib/spec/podman.spec +if [ ${OS_TEST} -eq 0 ]; then + sed -i "s/${BR}/${NEWBR}/g" contrib/spec/podman.spec +fi + mkdir build/ git archive --prefix "libpod-${COMMIT_SHORT}/" --format "tar.gz" HEAD -o "build/libpod-${COMMIT_SHORT}.tar.gz" git clone https://github.com/kubernetes-incubator/cri-o |