xbps-src: use xbps-uunshare(8) to sync remote cross repos too.
This commit is contained in:
parent
b7436d7001
commit
d694d022d1
1 changed files with 10 additions and 3 deletions
|
@ -163,9 +163,16 @@ chroot_sync_repos() {
|
||||||
fi
|
fi
|
||||||
cp -a $XBPS_MASTERDIR/var/db/xbps/keys/*.plist \
|
cp -a $XBPS_MASTERDIR/var/db/xbps/keys/*.plist \
|
||||||
$XBPS_MASTERDIR/usr/$XBPS_CROSS_TRIPLET/var/db/xbps/keys
|
$XBPS_MASTERDIR/usr/$XBPS_CROSS_TRIPLET/var/db/xbps/keys
|
||||||
env XBPS_TARGET_ARCH=$XBPS_TARGET_ARCH \
|
# Make sure to sync index for remote repositories.
|
||||||
xbps-uchroot $XBPS_MASTERDIR /usr/sbin/xbps-install \
|
if command -v xbps-uunshare &>/dev/null; then
|
||||||
-r /usr/$XBPS_CROSS_TRIPLET -S
|
env XBPS_TARGET_ARCH=$XBPS_TARGET_ARCH \
|
||||||
|
xbps-uunshare $XBPS_MASTERDIR /usr/sbin/xbps-install \
|
||||||
|
-r /usr/$XBPS_CROSS_TRIPLET -S
|
||||||
|
else
|
||||||
|
env XBPS_TARGET_ARCH=$XBPS_TARGET_ARCH \
|
||||||
|
xbps-uchroot $XBPS_MASTERDIR /usr/sbin/xbps-install \
|
||||||
|
-r /usr/$XBPS_CROSS_TRIPLET -S
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in a new issue