build/ports: must remove uninstalled deps too for previous
This commit is contained in:
parent
160b07c3bf
commit
426cccbd93
|
@ -338,12 +338,12 @@ extract_packages()
|
|||
|
||||
remove_packages()
|
||||
{
|
||||
echo ">>> Removing packages in ${1}"
|
||||
|
||||
BASEDIR=${1}
|
||||
shift
|
||||
PKGLIST=${@}
|
||||
|
||||
echo ">>> Removing packages in ${BASEDIR}: ${PKGLIST}"
|
||||
|
||||
for PKG in ${PKGLIST}; do
|
||||
# clear out the ports that ought to be rebuilt
|
||||
for PKGFILE in $(cd ${BASEDIR}${PACKAGESDIR}; find All -type f); do
|
||||
|
@ -372,10 +372,12 @@ install_packages()
|
|||
# find all package files, omitting plugins
|
||||
find .${PACKAGESDIR}/All -type f \! -name "os-*"
|
||||
}); do
|
||||
# Adds all available packages but ignores the
|
||||
# Adds all available packages and removes the
|
||||
# ones that cannot be installed due to missing
|
||||
# dependencies. This behaviour is desired.
|
||||
pkg -c ${BASEDIR} add ${PKG} || true
|
||||
if ! pkg -c ${BASEDIR} add ${PKG}; then
|
||||
rm -r ${BASEDIR}/${PKG}
|
||||
fi
|
||||
done
|
||||
else
|
||||
# always bootstrap pkg as the first package
|
||||
|
|
|
@ -91,7 +91,6 @@ echo "${PORTS_LIST}" | while read PORT_ORIGIN PORT_BROKEN; do
|
|||
continue
|
||||
fi
|
||||
|
||||
# user configs linger somewhere else and override the override :(
|
||||
make -C ${PORTSDIR}/\${PORT_ORIGIN} clean all install
|
||||
|
||||
if ! pkg query %o \${PORT_ORIGIN} > /dev/null; then
|
||||
|
|
Loading…
Reference in New Issue