summaryrefslogtreecommitdiffstats
path: root/redhat/build/rpmdist.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2024-06-25 09:23:30 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2024-06-25 09:23:30 +0200
commit6b5986e3b7615d142181aa4dba13702e275ae60e (patch)
treeb5330c5d61b92f490560a0801b9a1a8b60a66a35 /redhat/build/rpmdist.sh
parentb627bfe4025a3edf7e384461c445a87bd00900ac (diff)
downloadtde-packaging-6b5986e3b7615d142181aa4dba13702e275ae60e.tar.gz
tde-packaging-6b5986e3b7615d142181aa4dba13702e275ae60e.zip
RPM: updates for OpenSuse LEAP 15.6
Signed-off-by: François Andriot <albator78@libertysurf.fr>
Diffstat (limited to 'redhat/build/rpmdist.sh')
-rwxr-xr-xredhat/build/rpmdist.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/redhat/build/rpmdist.sh b/redhat/build/rpmdist.sh
index d7be81993..9fdad6b6f 100755
--- a/redhat/build/rpmdist.sh
+++ b/redhat/build/rpmdist.sh
@@ -47,6 +47,9 @@ case $a in
DIST=".oss$((read a; read a b c; echo ${c//./}) </etc/SUSE-brand)"
elif grep -q "tumbleweed" "/etc/os-release"; then
DIST=".osstw"
+ elif [ -r "/etc/os-release" ]; then
+ . "/etc/os-release"
+ DIST=".oss${VERSION//./}"
else
DIST=".oss"
fi