diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-01-06 14:43:39 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-01-06 14:43:39 +0200 |
commit | 5f875e5138a7c8a880af1dce4af6959973f27a02 (patch) | |
tree | e61a07b0562f3bdb63b24447718555e9c00b90ac /contrib | |
parent | 7f84272e2fae85bbfdaa5dca4e8f0d155c08cbeb (diff) |
do not call yum-builddep to allow working on newer distros
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/rhel/build-netdata-rpm.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/rhel/build-netdata-rpm.sh b/contrib/rhel/build-netdata-rpm.sh index 6a87353284..0519690917 100755 --- a/contrib/rhel/build-netdata-rpm.sh +++ b/contrib/rhel/build-netdata-rpm.sh @@ -33,7 +33,13 @@ then exit 1 fi -run yum-builddep "${srpm}" +#if which yum-builddep 2>/dev/null +#then +# run yum-builddep "${srpm}" +#elif which dnf 2>/dev/null +#then +# [ "${UID}" = 0 ] && run dnf builddep "${srpm}" +#fi run rpmbuild --rebuild "${srpm}" |