Author: matz Date: Wed Mar 19 20:06:29 2008 New Revision: 9212 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9212&view=rev Log: Store pattern order, includes, extends, category and icon as attributes. Change keywords to use an IDARRAY (not only one ID). Modified: trunk/sat-solver/tools/repo_susetags.c trunk/sat-solver/tools/susetags2solv.c Modified: trunk/sat-solver/tools/repo_susetags.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/repo_susetags.c?rev=9212&r1=9211&r2=9212&view=diff ============================================================================== --- trunk/sat-solver/tools/repo_susetags.c (original) +++ trunk/sat-solver/tools/repo_susetags.c Wed Mar 19 20:06:29 2008 @@ -757,7 +757,7 @@ } continue; case CTAG('=', 'K', 'w', 'd'): - repodata_set_poolstr(data, last_found_pack, SOLVABLE_KEYWORDS, line + 6); + repodata_add_poolstr_array(data, last_found_pack, SOLVABLE_KEYWORDS, line + 6); continue; case CTAG('=', 'A', 'u', 't'): repodata_set_str(data, last_found_pack, SOLVABLE_AUTHORS, line + 6); @@ -803,6 +803,27 @@ case CTAG('=', 'D', 'i', 'r'): add_dirline (&pd, line + 6); continue; + case CTAG('=', 'C', 'a', 't'): + repodata_set_poolstr(data, last_found_pack, SOLVABLE_CATEGORY, line + 6); + break; + case CTAG('=', 'O', 'r', 'd'): + /* Order is a string not a number, so we can retroactively insert + new patterns in the middle, i.e. 1 < 15 < 2. */ + repodata_set_str(data, last_found_pack, SOLVABLE_ORDER, line + 6); + break; + case CTAG('=', 'I', 'c', 'o'): + repodata_set_str(data, last_found_pack, SOLVABLE_ICON, line + 6); + break; + case CTAG('=', 'E', 'x', 't'): + repodata_add_poolstr_array(data, last_found_pack, SOLVABLE_EXTENDS, line + 6); + break; + case CTAG('=', 'I', 'n', 'c'): + repodata_add_poolstr_array(data, last_found_pack, SOLVABLE_INCLUDES, line + 6); + break; + + case CTAG('=', 'P', 'a', 't'): + case CTAG('=', 'P', 'k', 'g'): + break; default: break; Modified: trunk/sat-solver/tools/susetags2solv.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/susetags2solv.c?rev=9212&r1=9211&r2=9212&view=diff ============================================================================== --- trunk/sat-solver/tools/susetags2solv.c (original) +++ trunk/sat-solver/tools/susetags2solv.c Wed Mar 19 20:06:29 2008 @@ -33,7 +33,7 @@ " -d <descrdir> : do not read from stdin, but use data in descrdir\n" " -h : print help & exit\n" " -k : don't mix kinds (experimental!)\n" - " -b <base>: save fas multiple files starting with <base>\n" + " -b <base>: save as multiple files starting with <base>\n" " -n <name>: save attributes as <name>.attr\n" ); exit(status); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org