summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-08-14 11:52:35 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-08-14 11:52:35 +0200
commit28f09b6cf0872f183c3dd6f6737dab1f0a4b6676 (patch)
tree4c782f4082a27fc05f58940f1656a55b488e1c65 /apt-pkg
parent79f24b42cfa60fa79a427c5e37a01de303543a4b (diff)
parent6ea086805714e0dbeecfb5e3e26d3489a624bcd4 (diff)
* merged from the install-recommends branch
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/depcache.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc
index abe2842cc..78c929d62 100644
--- a/apt-pkg/depcache.cc
+++ b/apt-pkg/depcache.cc
@@ -863,14 +863,15 @@ void pkgDepCache::MarkInstall(PkgIterator const &Pkg,bool AutoInst,
{
bool found=false;
VerIterator instVer = Pkg.CurrentVer();
- for (DepIterator D = instVer.DependsList(); D.end() != true; D++)
- {
- //FIXME: deal better with or-groups(?)
- DepIterator LocalStart = D;
-
- if(IsImportantDep(D) && Start.TargetPkg() == D.TargetPkg())
- found=true;
- }
+ if(!instVer.end())
+ for (DepIterator D = instVer.DependsList(); D.end() != true; D++)
+ {
+ //FIXME: deal better with or-groups(?)
+ DepIterator LocalStart = D;
+
+ if(IsImportantDep(D) && Start.TargetPkg() == D.TargetPkg())
+ found=true;
+ }
// this is a new dep if it was not found to be already
// a important dep of the installed pacakge
isNewImportantDep = !found;