xbps-src: fixed index generation with -B without -D.
This commit is contained in:
parent
f0fad9387a
commit
0e59c1ee07
|
@ -187,23 +187,10 @@ install_pkg()
|
||||||
# XBPS_PREFER_BINPKG_DEPS is set.
|
# XBPS_PREFER_BINPKG_DEPS is set.
|
||||||
#
|
#
|
||||||
autoremove_pkg_dependencies $KEEP_AUTODEPS || return $?
|
autoremove_pkg_dependencies $KEEP_AUTODEPS || return $?
|
||||||
|
#
|
||||||
# Build binary package and update local repo index if
|
# Build binary package and update local repo index if -B is set.
|
||||||
# -B is set.
|
#
|
||||||
if [ -n "$BUILD_BINPKG" ]; then
|
_build_pkg_and_update_repos
|
||||||
xbps_make_binpkg
|
|
||||||
rval=$?
|
|
||||||
if [ "$rval" -ne 0 -a "$rval" -ne 6 ]; then
|
|
||||||
return $rval
|
|
||||||
elif [ "$rval" -eq 6 ]; then
|
|
||||||
# binpkg exists no need to update pkg-index in repo.
|
|
||||||
:
|
|
||||||
else
|
|
||||||
msg_normal "Updating pkg-index for local repository at:\n"
|
|
||||||
msg_normal " $XBPS_PACKAGESDIR\n"
|
|
||||||
${XBPS_REPO_CMD} genindex ${XBPS_PACKAGESDIR} 2>/dev/null
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#-
|
#-
|
||||||
readonly XBPS_SRC_BUILD_VERSION=20111109
|
readonly XBPS_SRC_BUILD_VERSION=20111110
|
||||||
XBPS_CONFIG_FILE=@@XBPS_INSTALL_ETCDIR@@/xbps-src.conf
|
XBPS_CONFIG_FILE=@@XBPS_INSTALL_ETCDIR@@/xbps-src.conf
|
||||||
|
|
||||||
PROGNAME=$(basename $0)
|
PROGNAME=$(basename $0)
|
||||||
|
|
Loading…
Reference in New Issue