clear HitEof flag in FileFd::Seek
authorDavid Kalnischkies <david@kalnischkies.de>
Tue, 15 Apr 2014 08:21:52 +0000 (10:21 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 16 Apr 2014 15:04:17 +0000 (17:04 +0200)
commitbb93178b8b5c2f8021977dbc34066f0d0fb8b9b9
tree41982ad9b30b06242357a55a84813cf3b4bee0f1
parent76bd63e2dc6ac5aaaf7f2cc98c2a83ab88ccc46c
clear HitEof flag in FileFd::Seek

fseek and co do this to their eof-flags and it is more logic this way as
we will usually seek away from the end (e.g. to re-read the file).

The commit also improves the testcase further and adds a test for the
binary compressor codepath (as gz, bzip2 and xz are handled by
libraries) via the use of 'rev' as a 'compressor'.
apt-pkg/contrib/fileutl.cc
test/libapt/assert.h
test/libapt/fileutl_test.cc
test/libapt/run-tests