xbps-src: make -E ignore remote repositories with -N
This commit is contained in:
parent
e8c42bd0d1
commit
1ccc884f1c
|
@ -472,7 +472,15 @@ setup_pkg() {
|
|||
fi
|
||||
makejobs="-j$XBPS_MAKEJOBS"
|
||||
if [ -n "$XBPS_BINPKG_EXISTS" ]; then
|
||||
local _binpkgver="$($XBPS_QUERY_XCMD -R -ppkgver $pkgver 2>/dev/null)"
|
||||
local extraflags=""
|
||||
if [ -n "$XBPS_SKIP_REMOTEREPOS" ]; then
|
||||
extraflags="-i"
|
||||
# filter out remote repositories
|
||||
for repo in $(xbps-query -L | awk '{ print $2 }' | grep '^/host/'); do
|
||||
extraflags+=" --repository=$repo"
|
||||
done
|
||||
fi
|
||||
local _binpkgver="$($XBPS_QUERY_XCMD -R -ppkgver $pkgver $extraflags 2>/dev/null)"
|
||||
if [ "$_binpkgver" = "$pkgver" ]; then
|
||||
if [ -z "$XBPS_DEPENDENCY" ]; then
|
||||
local _repo="$($XBPS_QUERY_XCMD -R -prepository $pkgver 2>/dev/null)"
|
||||
|
|
2
xbps-src
2
xbps-src
|
@ -157,7 +157,7 @@ $(print_cross_targets)
|
|||
-C Do not remove build directory, automatic dependencies and
|
||||
package destdir after successful install.
|
||||
|
||||
-E If a binary package exists in a local repository for the target package,
|
||||
-E If a binary package exists in a repository for the target package,
|
||||
do not try to build it, exit immediately.
|
||||
|
||||
-f Force running the specified stage (configure/build/install/pkg)
|
||||
|
|
Loading…
Reference in New Issue