fix(debian): obs preinstall & ID checks for debian testing builds

This commit is contained in:
purian23
2026-09-22 23:29:34 -04:00
parent c66ca00062
commit 80060ee925
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ GREEN='\033[0;32m'
NC='\033[0m' # No Color
# Check for root privileges
if [ "$(id -u)" == "0" ]; then
if [ "$(id -u)" = "0" ]; then
printf "%bError: This script must not be run as root%b\n" "$RED" "$NC"
exit 1
fi
+4 -4
View File
@@ -3,9 +3,9 @@
# To apply changes: osc meta prjconf home:AvengeMedia:dms -F distro/obs-project.conf
# osc meta prjconf home:AvengeMedia:dms-git -F distro/obs-project.conf
# Debian sid (dpkg 1.23) dropped the `tar` dependency from dpkg-dev, so tar no
# longer lands in the OBS buildroot preinstall set and dpkg fails on the first
# package install with "'tar' not found in PATH". Force-preinstall it.
%if "%{?_repository}" == "Debian_Unstable"
# Debian testing and sid (dpkg 1.23) dropped the `tar` dependency from dpkg-dev,
# so tar no longer lands in the OBS buildroot preinstall set and dpkg fails on
# the first package install with "'tar' not found in PATH". Force-preinstall it.
%if "%{?_repository}" == "Debian_Unstable" || "%{?_repository}" == "Debian_Testing"
Preinstall: tar
%endif