Przeglądaj źródła

cachefile.cc: Do not ignore return value of pkgDepCache::Init()

Currently, this always returns true, but it might start returning
false at some point in the future...

Gbp-Dch: ignore
Julian Andres Klode 11 lat temu
rodzic
commit
91e42c2b4e
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      apt-pkg/cachefile.cc

+ 1 - 2
apt-pkg/cachefile.cc

@@ -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	/*{{{*/