xbps-src: introduce XBPS_REPO_COMPTYPE for etc/conf.
This sets the repository data compression format, as explained in xbps-rindex(1). By default set to `gzip'.
This commit is contained in:
parent
3ad7858f09
commit
67cd850ebf
3 changed files with 13 additions and 4 deletions
|
@ -103,13 +103,16 @@ cut -d: -f 1,2 ${XBPS_STATEDIR}/.${sourcepkg}_register_pkg | sort -u | \
|
|||
cut -d : -f 2,3 | tr ':' '/')
|
||||
if [ -n "${arch}" ]; then
|
||||
msg_normal "Registering new packages to $repo ($arch)\n"
|
||||
XBPS_TARGET_ARCH=${arch} $XBPS_RINDEX_CMD ${XBPS_BUILD_FORCEMODE:+-f} -a ${paths}
|
||||
XBPS_TARGET_ARCH=${arch} $XBPS_RINDEX_CMD \
|
||||
${XBPS_REPO_COMPTYPE:+--compression $XBPS_REPO_COMPTYPE} ${XBPS_BUILD_FORCEMODE:+-f} -a ${paths}
|
||||
else
|
||||
msg_normal "Registering new packages to $repo\n"
|
||||
if [ -n "$XBPS_CROSS_BUILD" ]; then
|
||||
$XBPS_RINDEX_XCMD ${XBPS_BUILD_FORCEMODE:+-f} -a ${paths}
|
||||
$XBPS_RINDEX_XCMD ${XBPS_REPO_COMPTYPE:+--compression $XBPS_REPO_COMPTYPE} \
|
||||
${XBPS_BUILD_FORCEMODE:+-f} -a ${paths}
|
||||
else
|
||||
$XBPS_RINDEX_CMD ${XBPS_BUILD_FORCEMODE:+-f} -a ${paths}
|
||||
$XBPS_RINDEX_CMD ${XBPS_REPO_COMPTYPE:+--compression $XBPS_REPO_COMPTYPE} \
|
||||
${XBPS_BUILD_FORCEMODE:+-f} -a ${paths}
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue