xbps-src: fixed index generation with -B without -D.

This commit is contained in:
Juan RP 2011-11-10 13:28:27 +01:00
parent f0fad9387a
commit 0e59c1ee07
2 changed files with 5 additions and 18 deletions

View file

@ -187,23 +187,10 @@ install_pkg()
# XBPS_PREFER_BINPKG_DEPS is set.
#
autoremove_pkg_dependencies $KEEP_AUTODEPS || return $?
# Build binary package and update local repo index if
# -B is set.
if [ -n "$BUILD_BINPKG" ]; then
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
#
# Build binary package and update local repo index if -B is set.
#
_build_pkg_and_update_repos
return $?
}

View file

@ -23,7 +23,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# 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
PROGNAME=$(basename $0)