From 4e3c5633b1e74b4f58b95f339cfbbf4cbf21ab3e Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Wed, 6 Jan 2016 00:05:24 +0100 Subject: allow pdiff bootstrap from all supported compressors There is no reason to enforce that the file we start the bootstrap with is compressed with a compressor which is available online. This allows us to change the on-disk format as well as deals with repositories adding/removing support for a specific compressor. --- methods/rred.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'methods') diff --git a/methods/rred.cc b/methods/rred.cc index 0f938adf8..85ec30bd5 100644 --- a/methods/rred.cc +++ b/methods/rred.cc @@ -663,7 +663,7 @@ class RredMethod : public aptMethod { struct stat bufbase, bufpatch; if (stat(Path.c_str(), &bufbase) != 0 || stat(patch_name.c_str(), &bufpatch) != 0) - return _error->Errno("stat", _("Failed to stat")); + return _error->Errno("stat", _("Failed to stat %s"), Path.c_str()); struct timeval times[2]; times[0].tv_sec = bufbase.st_atime; @@ -673,7 +673,7 @@ class RredMethod : public aptMethod { return _error->Errno("utimes",_("Failed to set modification time")); if (stat(Itm->DestFile.c_str(), &bufbase) != 0) - return _error->Errno("stat", _("Failed to stat")); + return _error->Errno("stat", _("Failed to stat %s"), Itm->DestFile.c_str()); Res.LastModified = bufbase.st_mtime; Res.Size = bufbase.st_size; -- cgit v1.2.3