#define WARNINGMAILPATH "/var/log/YaST2/"
#define FILEFORBACKUPFILES "YaSTBackupModifiedFiles"
+#define MAXRPMMESSAGELINES 10000
namespace zypp
{
string line;
string rpmmsg;
vector<string> configwarnings;
- vector<string> errorlines;
+ unsigned linecnt = 0;
while (systemReadLine(line))
{
+ if ( linecnt < MAXRPMMESSAGELINES )
+ ++linecnt;
+ else
+ continue;
+
if (line.substr(0,2)=="%%")
{
int percent;
configwarnings.push_back(line);
}
}
+ if ( linecnt > MAXRPMMESSAGELINES )
+ rpmmsg += "[truncated]\n";
+
int rpm_status = systemStatus();
// evaluate result
// 50 - command completed
// 100 if no error
report->progress( 5 );
+ unsigned linecnt = 0;
while (systemReadLine(line))
{
+ if ( linecnt < MAXRPMMESSAGELINES )
+ ++linecnt;
+ else
+ continue;
rpmmsg += line+'\n';
}
+ if ( linecnt > MAXRPMMESSAGELINES )
+ rpmmsg += "[truncated]\n";
report->progress( 50 );
int rpm_status = systemStatus();