Rename config file "only_for" into "architecture" (#4861)

* Rename only_for def into architectures
* Rename def with typo arhitectures -> architectures
This commit is contained in:
Igor Pečovnik
2023-02-24 20:36:27 +01:00
committed by GitHub
parent 1dc2cecc3f
commit b7921eb53e
62 changed files with 25 additions and 14 deletions

View File

@@ -0,0 +1 @@
../../../buster/environments/cinnamon/architectures

View File

@@ -1 +0,0 @@
../../../buster/environments/cinnamon/only_for

View File

@@ -0,0 +1 @@
../../../buster/environments/gnome/architectures

View File

@@ -1 +0,0 @@
../../../buster/environments/gnome/only_for

View File

View File

@@ -0,0 +1 @@
../../../buster/environments/mate/architectures

View File

@@ -0,0 +1 @@
arm64, amd64, armhf, riscv64

0
config/desktop/focal/environments/kde-plasma/support Executable file → Normal file
View File

View File

@@ -0,0 +1 @@
arm64, amd64, armhf, riscv64

View File

@@ -0,0 +1 @@
../../../focal/environments/mate/architectures

View File

@@ -1 +0,0 @@
../../../focal/environments/budgie/only_for

View File

@@ -0,0 +1 @@
../../../focal/environments/cinnamon/architectures

View File

@@ -1 +0,0 @@
../../../focal/environments/cinnamon/only_for

View File

@@ -0,0 +1 @@
../../../focal/environments/gnome/architectures

View File

@@ -1 +0,0 @@
../../../focal/environments/gnome/only_for

View File

@@ -0,0 +1 @@
../../../focal/environments/i3-wm/architectures

View File

@@ -0,0 +1 @@
../../../focal/environments/kde-plasma/architectures

View File

@@ -1 +0,0 @@
../../../focal/environments/kde-plasma/only_for

View File

@@ -0,0 +1 @@
../../../focal/environments/mate/architectures

View File

@@ -1 +0,0 @@
../../../focal/environments/mate/only_for

View File

@@ -0,0 +1 @@
../../../focal/environments/xfce/architectures

View File

@@ -0,0 +1 @@
../../../focal/environments/xmonad/architectures

View File

@@ -1 +0,0 @@
../../../focal/environments/xmonad/only_for

View File

@@ -0,0 +1 @@
../../../focal/environments/cinnamon/architectures

View File

@@ -1 +0,0 @@
../../../focal/environments/cinnamon/only_for

View File

@@ -0,0 +1 @@
../../../focal/environments/gnome/architectures

View File

@@ -1 +0,0 @@
../../../focal/environments/gnome/only_for

View File

@@ -0,0 +1 @@
../../../focal/environments/xfce/architectures

View File

@@ -0,0 +1 @@
../../../bullseye/environments/budgie/architectures

View File

@@ -1 +0,0 @@
../../../bullseye/environments/budgie/only_for

View File

@@ -0,0 +1 @@
arm64, amd64

View File

@@ -1 +0,0 @@
../../../buster/environments/cinnamon/only_for

View File

@@ -0,0 +1 @@
arm64, amd64

View File

@@ -0,0 +1 @@
arm64, amd64

0
config/desktop/sid/environments/kde-plasma/support Executable file → Normal file
View File

View File

@@ -0,0 +1 @@
arm64, amd64

View File

@@ -0,0 +1 @@
arm64, amd64

View File

@@ -0,0 +1 @@
arm64, amd64, armhf, riscv64

View File

@@ -3,7 +3,7 @@
function desktop_element_available_for_arch() {
local desktop_element_path="${1}"
local targeted_arch="${2}"
local arch_limitation_file="${1}/only_for"
local arch_limitation_file="${1}/architectures"
if [[ -f "${arch_limitation_file}" ]]; then
if ! grep -- "${targeted_arch}" "${arch_limitation_file}" &> /dev/null; then
return 1
@@ -59,7 +59,7 @@ function desktop_environment_check_if_valid() {
elif [[ ${desktop_element_supported_result} == 66 ]]; then
error_msg+="The desktop environment \"${DESKTOP_ENVIRONMENT}\" has no packages for your targeted board architecture (BOARD=${BOARD} ARCH=${ARCH}). "
error_msg+="The supported boards architectures are : "
error_msg+="$(cat "${DESKTOP_ENVIRONMENT_DIRPATH}/only_for")"
error_msg+="$(cat "${DESKTOP_ENVIRONMENT_DIRPATH}/architectures")"
fi
# supress error when cache is rebuilding