Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/common-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-05-17 10:04:43 +0200
committerErich Eckner <git@eckner.net>2017-05-17 10:04:43 +0200
commit467e1211dad8554610b3e4572911dc075dbd2dc2 (patch)
treec427e9c864532c86e509db15cbce97ba74b9f913 /bin/common-functions
parentd4bd5f1061ec869dc2d4755fdd0c2191f9d7e418 (diff)
bin/common-functions: add i486 to the architecture list
Diffstat (limited to 'bin/common-functions')
-rwxr-xr-xbin/common-functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/common-functions b/bin/common-functions
index c2fa39e..c072612 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -22,6 +22,7 @@ find_pkgbuild() {
for repo in "${!repo_paths[@]}"; do
if [ "${repo}" == "archlinux32" ]; then
+ # this is not a repository of packages
continue
fi
if ! [ -d "${repo_paths["${repo}"]}/$1" ]; then
@@ -37,6 +38,8 @@ find_pkgbuild() {
)"
if [ -n "${PKGBUILD}" ]; then
echo "${PKGBUILD}"
+ # add i486 to the arch list
+ sed '/^arch=[^#]*any/!s|^\(arch=(\)\([^#]*)\)\s*\(#.*\)\?$|\1i486 \2|' -i "${PKGBUILD}"
if [ -f "${repo_paths["archlinux32"]}/$2/$1/PKGBUILD" ] && \
[ ! -f "${PKGBUILD}.changes-applied" ]; then
# If this package has modifications (or is new), apply them now: