]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/install-progress.cc
do not require non-broken systems in 'upgrade'
[apt.git] / apt-pkg / install-progress.cc
index 58e552474121e7b0933a8af4768ac3b285747f94..f1a9f42dc4b40af47654a891261ab220272bcd5b 100644 (file)
@@ -8,13 +8,12 @@
 #include <signal.h>
 #include <unistd.h>
 #include <iostream>
-#include <string>
 #include <vector>
 #include <sys/ioctl.h>
-#include <sstream>
 #include <fcntl.h>
 #include <algorithm>
 #include <stdio.h>
+#include <sstream>
 
 #include <apti18n.h>
 
@@ -334,6 +333,7 @@ void PackageManagerFancy::Stop()
       // override the progress line (sledgehammer)
       static const char* clear_screen_below_cursor = "\033[J";
       std::cout << clear_screen_below_cursor;
+      std::flush(std::cout);
    }
    child_pty = -1;
 }