xbps-src: autoremove pkgdeps if XBPS_PREFER_BINPKG_DEPS is set.
This commit is contained in:
@@ -166,6 +166,16 @@ install_pkg()
|
||||
if [ -d "$wrksrc" -a "$dontrm_builddir" = "no" ]; then
|
||||
remove_tmpl_wrksrc $wrksrc
|
||||
fi
|
||||
|
||||
#
|
||||
# If XBPS_PREFER_BINPKG_DEPS is set, we should remove those
|
||||
# package dependencies installed by the target package, do it.
|
||||
#
|
||||
if [ -n "$XBPS_PREFER_BINPKG_DEPS" ]; then
|
||||
msg_normal "Removing binary package dependencies...\n"
|
||||
${XBPS_BIN_CMD} -Rpyf autoremove
|
||||
fi
|
||||
return $?
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user