]> git.saurik.com Git - apt.git/blobdiff - methods/file.cc
merge patch from Daniel Hartwig to Show a error message if {,dist-}upgrade is used...
[apt.git] / methods / file.cc
index 5025c996d7008784848d233ac967aede3d4df617..7ed4e6f60110bd1627d27f09c06952798dc07d54 100644 (file)
@@ -83,7 +83,7 @@ bool FileMethod::Fetch(FetchItem *Itm)
 
    Hashes Hash;
    FileFd Fd(Res.Filename, FileFd::ReadOnly);
-   Hash.AddFD(Fd.Fd(), Fd.Size());
+   Hash.AddFD(Fd);
    Res.TakeHashes(Hash);
    URIDone(Res);
    return true;