diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-08-09 00:21:41 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-08-09 00:21:41 +0200 |
commit | 8d357c5290f737e0f47f1ad62b1256586aade860 (patch) | |
tree | 90cb1c5e08b1679cc0e9e1c8b1fbd5ee65ed8f71 /apt-pkg | |
parent | 496a05c628d39c981a8f472f16629043d8508808 (diff) |
* apt-pkg/indexcopy.cc:
- support having CDs with no Packages file (just a Packages.gz)
by not forcing a verification on non-existing files
(LP: #255545)
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/indexcopy.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apt-pkg/indexcopy.cc b/apt-pkg/indexcopy.cc index 9e5c03e0b..b1e75e30f 100644 --- a/apt-pkg/indexcopy.cc +++ b/apt-pkg/indexcopy.cc @@ -522,6 +522,15 @@ bool SigVerify::Verify(string prefix, string file, indexRecords *MetaIndex) { const indexRecords::checkSum *Record = MetaIndex->Lookup(file); + // we skip non-existing files in the verifcation to support a cdrom + // with no Packages file (just a Package.gz), see LP: #255545 + // (non-existing files are not considered a error) + if(!FileExists(prefix+file)) + { + _error->Warning("Skipping non-exisiting file %s", string(prefix+file).c_str()); + return true; + } + if (!Record) { _error->Warning("Can't find authentication record for: %s",file.c_str()); |