aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xxbps-mini-builder14
1 files changed, 14 insertions, 0 deletions
diff --git a/xbps-mini-builder b/xbps-mini-builder
index a52ff11..e5a7197 100755
--- a/xbps-mini-builder
+++ b/xbps-mini-builder
@@ -12,6 +12,20 @@ else
git pull
fi
+# Does this system use another set of repos
+if [ -d /etc/xbps.d ] ; then
+ cat /etc/xbps.d/* > etc/repos-remote.conf
+ # If this platform is 64 bit, override those as well
+ if [ "$(xbps-uhelper arch)"="x86_64" ] ; then
+ cat /etc/xbps.d/* > etc/repos-remote-x86_64.conf
+ fi
+
+ if [ -f /etc/xbps.d/00-repository-main.conf ] ; then
+ repo="$(cat /etc/xbps.d/00-repository-main.conf | sed 's/^.*=//')"
+ printf 'XBPS_INSTALL_ARGS="--repository=%s --repository=%s/musl"' ${repo} ${repo} > etc/conf
+ fi
+fi
+
# Do we have a live build environment
if [ ! -d masterdir ] ; then
# No masterdir, go ahead and bootstrap it