Skip to content

Commit

Permalink
Merge pull request #255 from andreriesco/release-2.6-hot-fixes
Browse files Browse the repository at this point in the history
torizonPackages: Fix packages that have "all" as target architecture
  • Loading branch information
andreriesco authored Sep 9, 2024
2 parents 2e83161 + a8bd01a commit 0444c36
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/torizonPackages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ function _addDepString ([string]$value) {
if ($value.Contains(":")) {
return "`t ${value} \"
} else {
return "`t ${value}:${TORIZON_ARCH} \"
# There are certain packages which have "all" as architecture
$value_arch = apt-cache show $pack | sed -n '/^Architecture:/ {s/^Architecture: //; p; q}'
if ($value_arch -eq "all") {
return "`t ${value}:all \"
} else {
return "`t ${value}:${TORIZON_ARCH} \"
}
}
}

Expand Down

0 comments on commit 0444c36

Please sign in to comment.