Author: doogie
Date: 2003-05-19 17:30:12 GMT
Fix never-ending loop in apt-get install -V.
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-get.cc,v 1.129 2003/04/27 05:59:33 doogie Exp $
+// $Id: apt-get.cc,v 1.130 2003/05/19 17:30:12 doogie Exp $
/* ######################################################################
apt-get - Cover for dpkg
/* ######################################################################
apt-get - Cover for dpkg
out << " " << string(List,Start,End - Start) << " (" <<
string(VersionsList,VersionsStart,VersionsEnd - VersionsStart) <<
")" << endl;
out << " " << string(List,Start,End - Start) << " (" <<
string(VersionsList,VersionsStart,VersionsEnd - VersionsStart) <<
")" << endl;
+
+ if (End == string::npos || End < Start)
+ End = Start + ScreenWidth;
+
Start = End + 1;
VersionsStart = VersionsEnd + 1;
} else {
Start = End + 1;
VersionsStart = VersionsEnd + 1;
} else {
* Fix api breakage that broke apt-ftparchive and apt-cache dumpavail, by
backing out change that incorretly attempted to handle Package sections
larger than 32k. Closes: #192373
* Fix api breakage that broke apt-ftparchive and apt-cache dumpavail, by
backing out change that incorretly attempted to handle Package sections
larger than 32k. Closes: #192373
+ * Fix never-ending loop with apt-get install -V. Closes: #192355.
-- Adam Heath <doogie@debian.org> Mon, 19 May 2003 11:53:49 -0500
-- Adam Heath <doogie@debian.org> Mon, 19 May 2003 11:53:49 -0500