diff options
Diffstat (limited to 'apt-pkg/indexcopy.cc')
-rw-r--r-- | apt-pkg/indexcopy.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/indexcopy.cc b/apt-pkg/indexcopy.cc index 872adcaa8..8704da80a 100644 --- a/apt-pkg/indexcopy.cc +++ b/apt-pkg/indexcopy.cc @@ -63,9 +63,9 @@ bool IndexCopy::CopyPackages(string CDROM,string Name,vector<string> &List, struct stat Buf; bool found = false; auto const file = F + GetFileName(); - for (auto const &ext: APT::Configuration::getCompressorExtensions()) + for (auto const &c : compressor) { - if (stat((file + ext).c_str(), &Buf) != 0) + if (stat((file + c.Extension).c_str(), &Buf) != 0) continue; found = true; break; |