xbps-src: don't overwrite xbps conf plist files.
This commit is contained in:
parent
2299ca2aea
commit
e2840dbd7b
1 changed files with 7 additions and 5 deletions
|
@ -205,13 +205,15 @@ prepare_binpkg_repos()
|
|||
0.1[0-9].[0-9]*)
|
||||
mkdir -p ${XBPS_MASTERDIR}/usr/local/etc/xbps
|
||||
for f in /etc /usr/local/etc; do
|
||||
if [ -d $f/xbps ]; then
|
||||
cp -f $f/xbps/*.plist \
|
||||
${XBPS_MASTERDIR}/usr/local/etc/xbps
|
||||
fi
|
||||
for conf in conf repositories; do
|
||||
if [ ! -f $XBPS_MASTERDIR/usr/local/etc/xbps/${conf}.plist ]; then
|
||||
[ -d $f ] && cp -f $f/xbps/${conf}.plist \
|
||||
${XBPS_MASTERDIR}/usr/local/etc/xbps
|
||||
fi
|
||||
done
|
||||
done
|
||||
msg_normal "Synchronizing index for remote repositories...\n"
|
||||
${XBPS_REPO_CMD} sync
|
||||
${XBPS_REPO_CMD} sync 2>/dev/null
|
||||
;;
|
||||
0.[89].[0-9]*)
|
||||
CONF_FILE=$XBPS_MASTERDIR/usr/local/etc/xbps-conf.plist
|
||||
|
|
Loading…
Add table
Reference in a new issue