diff options
author | Chandan Kumar (raukadah) <raukadah@gmail.com> | 2020-02-24 22:17:21 +0530 |
---|---|---|
committer | Chandan Kumar (raukadah) <raukadah@gmail.com> | 2020-02-24 22:17:21 +0530 |
commit | 9f6fc7011025986c893b633ef09e146105ffecc1 (patch) | |
tree | cd4c843429543a440e5dbc0e814c67e3cff0de82 | |
parent | 18dcb84d641f4e8ae7fa31fa446d9461e0c915ab (diff) | |
download | podman-9f6fc7011025986c893b633ef09e146105ffecc1.tar.gz podman-9f6fc7011025986c893b633ef09e146105ffecc1.tar.bz2 podman-9f6fc7011025986c893b633ef09e146105ffecc1.zip |
Fixed build_rpm.sh script for Fedora 30
golang-github-cpuguy83-go-md2man is only available in Fedora 30 and
got renamed to golang-github-cpuguy83-md2man for Fedora 31 which breaks
the user interface for building rpm on fedora 30.
It fixes the same by installing correct md2man package on Fedora 30.
Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
-rwxr-xr-x | contrib/build_rpm.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/build_rpm.sh b/contrib/build_rpm.sh index e6acbdb15..de6941199 100755 --- a/contrib/build_rpm.sh +++ b/contrib/build_rpm.sh @@ -46,8 +46,13 @@ if [[ $pkg_manager == *dnf ]]; then ) fi +# Package name on fedora 30 is golang-github-cpuguy83-go-md2man +if (grep -i 'Fedora' /etc/redhat-release | grep " 30" ) ; then + PKGS+=(golang-github-cpuguy83-go-md2man \ + btrfs-progs-devel \ + ) # btrfs-progs-devel is not available in CentOS/RHEL-8 -if ! (grep -i 'Red Hat\|CentOS' /etc/redhat-release | grep " 8" ); then +elif ! (grep -i 'Red Hat\|CentOS' /etc/redhat-release | grep " 8" ) ; then PKGS+=(golang-github-cpuguy83-md2man \ btrfs-progs-devel \ ) |