]> git.saurik.com Git - apt.git/commitdiff
cachefile.cc: Do not ignore return value of pkgDepCache::Init()
authorJulian Andres Klode <jak@debian.org>
Sat, 15 Aug 2015 08:48:59 +0000 (10:48 +0200)
committerJulian Andres Klode <jak@debian.org>
Sat, 15 Aug 2015 08:48:59 +0000 (10:48 +0200)
Currently, this always returns true, but it might start returning
false at some point in the future...

Gbp-Dch: ignore

apt-pkg/cachefile.cc

index ed3c2dd0a538ae36db332850c6c666c3c193f7dd..21486409577677c403f200a6f5ecbcc9a8d5851f 100644 (file)
@@ -157,8 +157,7 @@ bool pkgCacheFile::BuildDepCache(OpProgress *Progress)
    if (_error->PendingError() == true)
       return false;
 
-   DCache->Init(Progress);
-   return true;
+   return DCache->Init(Progress);
 }
                                                                        /*}}}*/
 // CacheFile::Open - Open the cache files, creating if necessary       /*{{{*/