* apt-pkg/deb/dpkgpm.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 31 Oct 2006 19:06:34 +0000 (20:06 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 31 Oct 2006 19:06:34 +0000 (20:06 +0100)
  - reset the line if a invalid line was read

apt-pkg/deb/dpkgpm.cc

index 4c44cd0..c7a6b92 100644 (file)
@@ -636,6 +636,8 @@ bool pkgDPkgPM::Go(int OutStatusFd)
         {
            if (_config->FindB("Debug::pkgDPkgProgressReporting",false) == true)
               std::clog << "ignoring line: not enough ':'" << std::endl;
+           // reset the line buffer
+           line[0]=0;
            continue;
         }