Author: rhafer Date: Fri Sep 5 14:25:52 2008 New Revision: 50742 URL: http://svn.opensuse.org/viewcvs/yast?rev=50742&view=rev Log: take hardcoded Schema into account when computing new Schemaindex Modified: trunk/ldap-server/src/agent/SlapdConfigAgent.cc Modified: trunk/ldap-server/src/agent/SlapdConfigAgent.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ldap-server/src/agent/SlapdConfigAgent.cc?rev=50742&r1=50741&r2=50742&view=diff ============================================================================== --- trunk/ldap-server/src/agent/SlapdConfigAgent.cc (original) +++ trunk/ldap-server/src/agent/SlapdConfigAgent.cc Fri Sep 5 14:25:52 2008 @@ -1324,7 +1324,12 @@ entry = ldif.getEntryRecord(); y2milestone("adding <%s> to SchemaList", entry.getDN().c_str() ); boost::shared_ptr<OlcSchemaConfig> schemaCfg(new OlcSchemaConfig(oldEntry, entry)); - schemaCfg->setIndex( schema.size()-1, true ); + int index = schema.size(); + if ( ! schema.empty() && (*schema.begin())->getName() == "schema" ) + { + index--; + } + schemaCfg->setIndex( index , true ); schema.push_back( schemaCfg ); } return YCPBoolean(true); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org