62 |
rm "${runrc}" |
rm "${runrc}" |
63 |
fi |
fi |
64 |
} |
} |
65 |
|
|
66 |
|
runarch-pkg-install() |
67 |
|
{ |
68 |
|
local arch="$1" |
69 |
|
local pkg="$2" |
70 |
|
|
71 |
|
if [ ! -f ${BUILDROOT}/.stamps/"${arch}"_"${pkg}"-ok ] |
72 |
|
then |
73 |
|
runarch "${arch}" mage install "${pkg}" || die "${arch} install 'python'" |
74 |
|
touch ${BUILDROOT}/.stamps/"${arch}"_"${pkg}"-ok |
75 |
|
else |
76 |
|
echo "Warning: '${pkg}' already installed for arch '${arch}'" |
77 |
|
fi |
78 |
|
|
79 |
|
# never fail |
80 |
|
return 0 |
81 |
|
} |
82 |
|
|
83 |
|
enum-build-arch-types() |
84 |
|
{ |
85 |
|
echo "${BUILD_ARCH[*]}" |
86 |
|
} |
87 |
|
|
88 |
|
enum-all-arch-types() |
89 |
|
{ |
90 |
|
local arch |
91 |
|
local build_arch_types |
92 |
|
|
93 |
|
for arch in src ${BUILD_ARCH[*]} |
94 |
|
do |
95 |
|
if [ ! -e ${BUILDSERVER_CONFIG_DIR}/profiles/${BUILDROOT_PROFILE}/${arch}/mage.rc ] |
96 |
|
then |
97 |
|
echo "Warning: mage.rc of '${arch}' not found. Arch '${arch}' ignored." >&2 |
98 |
|
else |
99 |
|
build_arch_types+=( "${arch}" ) |
100 |
|
fi |
101 |
|
done |
102 |
|
|
103 |
|
if [[ ${BUILD_PLAYGROUND} -eq 1 ]] |
104 |
|
then |
105 |
|
for arch in ${BUILD_ARCH[*]} |
106 |
|
do |
107 |
|
if [ ! -e ${BUILDSERVER_CONFIG_DIR}/profiles/${BUILDROOT_PROFILE}/playground-${arch}/mage.rc ] |
108 |
|
then |
109 |
|
echo "Warning: mage.rc of 'playground-${arch}' not found. Arch 'playground-${arch}' ignored." >&2 |
110 |
|
else |
111 |
|
build_arch_types+=( "playground-${arch}" ) |
112 |
|
fi |
113 |
|
done |
114 |
|
fi |
115 |
|
|
116 |
|
echo "${build_arch_types[*]}" |
117 |
|
} |