Author: kkaempf Date: Tue Apr 8 14:03:10 2008 New Revision: 9458 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9458&view=rev Log: document repodata_set_constant Modified: trunk/sat-solver/doc/README.attr Modified: trunk/sat-solver/doc/README.attr URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/doc/README.attr?rev=9458&r1=9457&r2=9458&view=diff ============================================================================== --- trunk/sat-solver/doc/README.attr (original) +++ trunk/sat-solver/doc/README.attr Tue Apr 8 14:03:10 2008 @@ -131,6 +131,21 @@ repodata_set_id(data, datanum, attr_name, id); +4.5 Setting a constant attribute + + A constant attribute shares a single value across all instances of + the attribute. + + A constant can either be of numeric (unsigned int) type + + repodata_set_constant(data, datanum, attr_name, 12345); + + or an Id: + + Id id = str2id(pool, "constant string", 1); + repodata_set_constant(data, datanum, attr_name, id); + + 5. Writing the .solv file Before writing out a .solv file, you need to internalize the -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org