summaryrefslogtreecommitdiffstats
path: root/redhat/build/rpmdist.sh
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2018-05-13 13:33:36 +0200
committerFrançois Andriot <[email protected]>2018-05-13 13:34:18 +0200
commit35859abe41040ab12ea19636471ec6fc0e7686e2 (patch)
tree2997b9547715e9711ea22ae615d20316c6a4e53a /redhat/build/rpmdist.sh
parent9512efc10de55c5689f398107df14ae96670932e (diff)
downloadtde-packaging-35859abe41040ab12ea19636471ec6fc0e7686e2.tar.gz
tde-packaging-35859abe41040ab12ea19636471ec6fc0e7686e2.zip
RPM packaging: updates for Fedora 28 / OpenSUSE 15.0
Diffstat (limited to 'redhat/build/rpmdist.sh')
-rwxr-xr-xredhat/build/rpmdist.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/redhat/build/rpmdist.sh b/redhat/build/rpmdist.sh
index ec4735d30..16d1468a4 100755
--- a/redhat/build/rpmdist.sh
+++ b/redhat/build/rpmdist.sh
@@ -7,7 +7,7 @@ DIST=""
if [ -r /etc/redhat-release ]; then
read a b c d e f g < /etc/redhat-release
-elif [ -r /etc/SuSE-release ] || grep -qw "ID=opensuse" "/etc/os-release"; then
+elif [ -r /etc/SuSE-release ] || [ -r /etc/SUSE-brand ] || grep -qw "ID=opensuse" "/etc/os-release"; then
a="opensuse"
fi
@@ -41,6 +41,8 @@ case $a in
opensuse)
if [ -r "/etc/SuSE-release" ]; then
DIST=".oss$((read l; read a b c; echo ${c//./}) </etc/SuSE-release)"
+ elif [ -r "/etc/SUSE-brand" ]; then
+ DIST=".oss$((read a; read a b c; echo ${c//./}) </etc/SUSE-brand)"
else
DIST=".oss"
fi