BmapCopy: make object one-time usable
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 14 Dec 2012 13:04:30 +0000 (15:04 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 14 Dec 2012 13:07:35 +0000 (15:07 +0200)
commiteac9c0c68b25141f35b61e138266550664d857ee
tree94b2b07619e09ebecec8d0751178b601df876bb0
parent52d5663217269a10e9602496e445126e2f62a0df
BmapCopy: make object one-time usable

Make the 'BmapCopy' objects usable only once, just like many other
complex objects like Bzip2File.

The reason for this is that it is too complex to make them re-usable,
because this requires seeking image file and the destination file to the
beginning, and not all files are easily seekable.

In fact, some files are not seekable at all. So remove the unneeded
complexity.

Change-Id: I30ecdd44dead485ae9d187e3487b0efa548c15d5
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmaptools/BmapCopy.py
tests/test_api_base.py