]> git.saurik.com Git - apt.git/blobdiff - ftparchive/cachedb.cc
improve https method queue progress reporting
[apt.git] / ftparchive / cachedb.cc
index df5eb1451b1ede4d46821f23ac06858fa68669b8..1dc2685946684598e602b6f2ba7f3a1b781dd25f 100644 (file)
@@ -322,12 +322,12 @@ bool CacheDB::LoadSource()                                                /*{{{*/
    if (Dsc.Read(FileName) == false)
       return false;
 
-   if (Dsc.Data == 0)
+   if (Dsc.Length == 0)
       return _error->Error(_("Failed to read .dsc"));
-   
+
    // Write back the control information
    InitQuerySource();
-   if (Put(Dsc.Data, Dsc.Length) == true)
+   if (Put(Dsc.Data.c_str(), Dsc.Length) == true)
       CurStat.Flags |= FlSource;
 
    return true;