Author: mlschroe Date: Mon Mar 3 21:57:12 2008 New Revision: 8993 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8993&view=rev Log: - support not-seekable files again Modified: trunk/sat-solver/src/repodata.c Modified: trunk/sat-solver/src/repodata.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/src/repodata.c?rev=8993&r1=8992&r2=8993&view=diff ============================================================================== --- trunk/sat-solver/src/repodata.c (original) +++ trunk/sat-solver/src/repodata.c Mon Mar 3 21:57:12 2008 @@ -115,6 +115,9 @@ if (i > pend) return data->blob_store + data->pages[pstart].mapped_at; + if (data->pagefd == -1) + return 0; + /* Ensure that we can map the numbers of pages we need at all. */ if (pend - pstart + 1 > data->ncanmap) { @@ -266,8 +269,6 @@ return 0; return data->vincore + off; } - if (data->pagefd == -1) - return 0; if (off + len > key->size) return 0; /* we now have the offset, go into vertical */ -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org