]> git.saurik.com Git - apt.git/blobdiff - methods/cdrom.cc
Merge branch 'debian/experimental' into feature/srv-records
[apt.git] / methods / cdrom.cc
index 74e2ecc6b632d138e464cb88951449385c6478a9..10cb29f662be05318858e671a382792d283d87bd 100644 (file)
@@ -266,7 +266,7 @@ bool CDROMMethod::Fetch(FetchItem *Itm)
    Res.LastModified = Buf.st_mtime;
    Res.Size = Buf.st_size;
 
-   Hashes Hash;
+   Hashes Hash(Itm->ExpectedHashes);
    FileFd Fd(Res.Filename, FileFd::ReadOnly);
    Hash.AddFD(Fd);
    Res.TakeHashes(Hash);