X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/f359b7e8c03884cd9f097d4b3ff8b8b8be8053ba..280a9f18d6dd720d7cfec88a60acbce42f72ab66:/apt-private/private-source.cc diff --git a/apt-private/private-source.cc b/apt-private/private-source.cc index 52487248f..a2621946a 100644 --- a/apt-private/private-source.cc +++ b/apt-private/private-source.cc @@ -1041,7 +1041,7 @@ bool DoBuildDep(CommandLine &CmdL) return false; } - if (InstallPackages(Cache, false, true) == false) + if (_error->PendingError() || InstallPackages(Cache, false, true) == false) return _error->Error(_("Failed to process build dependencies")); return true; }