summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 17:03:59 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 17:03:59 +0000
commit34e8862299d2668b5138e42ddcfcc5505fc9b07a (patch)
tree3ce03ac3261acf93b8995eb4df6679221c87c8c3 /cmdline/apt-get.cc
parent02b176956b3a8b8d3ad6c1d42e0d64ee9716cd25 (diff)
* Let apt-get build-dep try alternatives if the install...
Author: mdz Date: 2003-10-29 17:56:31 GMT * Let apt-get build-dep try alternatives if the installed package doesn't meet version requirements (Closes: #214736)
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r--cmdline/apt-get.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 0cf723466..9906ad710 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-get.cc,v 1.143 2003/09/24 04:00:25 mdz Exp $
+// $Id: apt-get.cc,v 1.144 2003/10/29 17:56:31 mdz Exp $
/* ######################################################################
apt-get - Cover for dpkg
@@ -2156,11 +2156,18 @@ bool DoBuildDep(CommandLine &CmdL)
break;
}
if (CV.end() == true)
+ if (hasAlternatives)
+ {
+ continue;
+ }
+ else
+ {
return _error->Error(_("%s dependency for %s cannot be satisfied "
"because no available versions of package %s "
"can satisfy version requirements"),
Last->BuildDepType((*D).Type),Src.c_str(),
(*D).Package.c_str());
+ }
}
else
{