]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-source.cc
fail installing build-deps if parsing them failed
[apt.git] / apt-private / private-source.cc
index 52487248f0c8a97f61315199240bc9e7041d8cb8..a2621946abf4364e662f180eef2144d61c34883e 100644 (file)
@@ -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;
 }