summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt-private/private-source.cc2
1 files changed, 1 insertions, 1 deletions
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;
}