fix relaton column number
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 3 Aug 2007 15:27:40 +0000 (15:27 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 3 Aug 2007 15:27:40 +0000 (15:27 +0000)
zypp/repo/cached/RepoImpl.cc

index 0fe032c..abb4395 100644 (file)
@@ -422,7 +422,7 @@ void RepoImpl::read_capabilities( sqlite3_connection &con,
       _ticks.tick();
       Resolvable::Kind refer = _type_cache.kindFor(reader.getint(0));
 
-      Rel rel = _type_cache.relationFor(reader.getint(3));
+      Rel rel = _type_cache.relationFor(reader.getint(4));
       capability::ModaliasCap *mcap = new capability::ModaliasCap( refer, reader.getstring(1), rel, reader.getstring(3) );
       mcap->setPkgname(reader.getstring(2));
       zypp::Dep deptype = _type_cache.deptypeFor(reader.getint(5));