]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire.cc
* apt-inst/deb/debfile.h:
[apt.git] / apt-pkg / acquire.cc
index 573a85c2fafc0aeea5b62ef619bee50ec4ce9c2d..5e1419056b4f93279e76c46075013a4a509dd1af 100644 (file)
@@ -872,7 +872,9 @@ bool pkgAcquireStatus::Pulse(pkgAcquire *Owner)
             << ":"  << (CurrentBytes/float(TotalBytes)*100.0) 
             << ":" << msg 
             << endl;
-      write(fd, status.str().c_str(), status.str().size());
+
+      std::string const dlstatus = status.str();
+      FileFd::Write(fd, dlstatus.c_str(), dlstatus.size());
    }
 
    return true;