fail in CopyFile if the FileFds have error flag set
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 9 Jun 2013 16:33:48 +0000 (18:33 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 9 Jun 2013 16:49:55 +0000 (18:49 +0200)
commit2128d3fce44da34ecb1f0d784b703807f66b20f9
tree0daac9f27c6de68ccb0ef662f7541e9426460b83
parent57da1b4bd21aceced30f658993fb811a5232cff7
fail in CopyFile if the FileFds have error flag set

Testing for global PendingErrors in users of CopyFile is incorrect
in so far as unrelated errors will prevent us from copying perfectly
fine files and checking for the validity of the files is just better
in CopyFiles as it already checks if files are at least opened.

Add also a higher-level error message to the error stack if it fails.
apt-pkg/contrib/fileutl.cc
apt-pkg/indexcopy.cc
debian/changelog