diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-01-06 00:05:24 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-01-08 15:40:01 +0100 |
commit | 4e3c5633b1e74b4f58b95f339cfbbf4cbf21ab3e (patch) | |
tree | 1e96d3fe037b4ee841f79bcec859443f6eebc459 /methods/rred.cc | |
parent | 1866240123a57de8f693b0ba01d8b709f027282d (diff) |
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.
Diffstat (limited to 'methods/rred.cc')
-rw-r--r-- | methods/rred.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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; |