From f90fe6abb8acde46001e1b7601fecbe8179e5794 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 6 Jun 2014 16:24:35 +0200 Subject: [PATCH] xbps-src: fixed repo handling with xbps-0.37 in cross builds. --- common/xbps-src/shutils/chroot.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/xbps-src/shutils/chroot.sh b/common/xbps-src/shutils/chroot.sh index 3226b7119a..d80909659a 100644 --- a/common/xbps-src/shutils/chroot.sh +++ b/common/xbps-src/shutils/chroot.sh @@ -136,6 +136,10 @@ chroot_sync_repos() { fi cp -a $XBPS_MASTERDIR/var/db/xbps/keys/*.plist \ $XBPS_MASTERDIR/usr/$XBPS_CROSS_TRIPLET/var/db/xbps/keys + rm -rf $XBPS_MASTERDIR/usr/$XBPS_CROSS_TRIPLET/etc/xbps/repo.d + mkdir -p $XBPS_MASTERDIR/usr/$XBPS_CROSS_TRIPLET/etc/xbps/repo.d + cp ${XBPS_MASTERDIR}/etc/xbps/repo.d/*.conf \ + $XBPS_MASTERDIR/usr/$XBPS_CROSS_TRIPLET/etc/xbps/repo.d env XBPS_TARGET_ARCH=$XBPS_TARGET_ARCH \ $CHROOT_CMD $XBPS_MASTERDIR /usr/sbin/xbps-install \ -r /usr/$XBPS_CROSS_TRIPLET -S