summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-05-23 16:45:15 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-05-28 11:44:02 +0200
commitc28b334fdd50bcdf1b469665fb24d19b708e3f92 (patch)
tree8c4ce62bbbae1e17b3734899d48c9255d18ef62b
parentde326a4e8ad22a24e14c0f81821b0dd285860f22 (diff)
downloadNetworkManager-lr/python3.tar.gz
rpm/build.sh: suggest dnf builddep after BUILDTYPE=SRPMlr/python3
Convenient for copy & paste.
-rwxr-xr-xcontrib/fedora/rpm/build.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/fedora/rpm/build.sh b/contrib/fedora/rpm/build.sh
index 34ec42943e..b7674cc8c5 100755
--- a/contrib/fedora/rpm/build.sh
+++ b/contrib/fedora/rpm/build.sh
@@ -210,7 +210,10 @@ ls -dla \
"$TEMP_LATEST"/SRPMS/*.rpm \
2>/dev/null | sed 's/^/ /'
LOG
-if [[ "$BUILDTYPE" != "SRPM" ]]; then
+if [[ "$BUILDTYPE" == "SRPM" ]]; then
+ LOG sudo $(which dnf &>/dev/null && echo dnf builddep || echo yum-builddep) $TEMP_LATEST/SRPMS/*.src.rpm
+ LOG
+else
LOG "sudo $(which dnf &>/dev/null && echo dnf || echo yum) install '$TEMP_LATEST/RPMS'/*/*.rpm"
LOG
fi