From bca981e21e6c184755a24c69d91dae3d96caf561 Mon Sep 17 00:00:00 2001
From: obarun <eric@obarun.org>
Date: Sat, 23 Dec 2023 10:46:06 +1100
Subject: [PATCH] be sure to use built package

---
 build_toolchain.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/build_toolchain.sh b/build_toolchain.sh
index c13b747b..e36e36fe 100755
--- a/build_toolchain.sh
+++ b/build_toolchain.sh
@@ -18,9 +18,16 @@ check_tag(){
     fi
 }
 
+rm_package(){
+
+    pacman -Rdd ${1}
+
+}
+
 ## skalibs
 build_skalibs() {
 
+    rm_package "skalibs"
     git clone https://github.com/skarnet/skalibs
     cd skalibs
     check_tag "${skalibs_tag}"
@@ -36,6 +43,7 @@ build_skalibs() {
 ## execline
 build_execline() {
 
+    rm_package "execline"
     git clone https://github.com/skarnet/execline
     cd execline
     check_tag "${execline_tag}"
@@ -54,6 +62,7 @@ build_execline() {
 ## s6
 build_s6() {
 
+    rm_package "s6"
     git clone https://github.com/skarnet/s6
     cd s6
     check_tag "${s6_tag}"
@@ -70,6 +79,7 @@ build_s6() {
 ## oblibs
 build_oblibs() {
 
+    rm_package "oblibs"
     git clone https://git.obarun.org/obarun/oblibs
     cd oblibs
     check_tag "${oblibs_tag}"
-- 
GitLab