Author: matz Date: Tue Feb 5 15:06:26 2008 New Revision: 8471 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8471&view=rev Log: Bah, we have to handle the empty string too. Whenever there were empty strings (STRID_EMPTY), e.g. in s->vendor, the SOLV file was fairly messed up in subtle ways. This might fix #354404 (at least with this I can't reproduce it). Probably most SOLV files need to be regenerated. Modified: trunk/sat-solver/tools/repo_write.c Modified: trunk/sat-solver/tools/repo_write.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/repo_write.c?rev=8471&r1=8470&r2=8471&view=diff ============================================================================== --- trunk/sat-solver/tools/repo_write.c (original) +++ trunk/sat-solver/tools/repo_write.c Tue Feb 5 15:06:26 2008 @@ -1245,7 +1245,7 @@ int same; size_t len; for (same = 0; same < 255; same++) - if (old_str[same] != str[same]) + if (!old_str[same] || !str[same] || old_str[same] != str[same]) break; *pp++ = same; len = strlen (str + same) + 1; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org