projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a78dba0
)
- support not-seekable files again
author
Michael Schroeder
<mls@suse.de>
Mon, 3 Mar 2008 20:57:12 +0000
(20:57 +0000)
committer
Michael Schroeder
<mls@suse.de>
Mon, 3 Mar 2008 20:57:12 +0000
(20:57 +0000)
src/repodata.c
patch
|
blob
|
history
diff --git
a/src/repodata.c
b/src/repodata.c
index 333d6bb1a97cc80a29051666d7d9544957f6f769..90742be8d4a522dd280fb7a86c95e8bbb04bb508 100644
(file)
--- a/
src/repodata.c
+++ b/
src/repodata.c
@@
-115,6
+115,9
@@
load_page_range(Repodata *data, unsigned int pstart, unsigned int pend)
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
@@
make_vertical_available(Repodata *data, Repokey *key, Id off, Id len)
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 */