flase alarm of not initialized database
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Tue, 14 Feb 2006 09:36:52 +0000 (09:36 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Tue, 14 Feb 2006 09:36:52 +0000 (09:36 +0000)
zypp/target/store/XMLFilesBackend.cc

index a0103b6fe7dff5b0920d88ab8a34231bdd6f348d..ac4cce12b231efc74cffc9d34edc57e2967d0fc4 100644 (file)
@@ -161,7 +161,7 @@ bool
 XMLFilesBackend::isBackendInitialized() const
 {
   bool ok = true;
-  ok = ok && exists( ZYPP_DB_DIR );
+  ok = ok && exists( path(d->root.asString()) / ZYPP_DB_DIR );
   std::set<Resolvable::Kind>::const_iterator it_kinds;
   for ( it_kinds = d->kinds.begin() ; it_kinds != d->kinds.end(); ++it_kinds )
   {