diff options
author | Michael Vogt <egon@bottom> | 2006-07-25 13:20:17 +0200 |
---|---|---|
committer | Michael Vogt <egon@bottom> | 2006-07-25 13:20:17 +0200 |
commit | 1fa25c1f17a290e497a49cb310511b4b58c9c009 (patch) | |
tree | 77edf875425da4bb35389fa3b0b8f6c1e0cf0348 /apt-pkg | |
parent | 67fefcfec18c9ada43a07e5fffae6b3a5c693388 (diff) | |
parent | a9be43ff002473c6a4c5197ba3767ee938ae3ed1 (diff) |
* merged with mainline
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 667db8ff2..bf0434ccc 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -624,7 +624,13 @@ bool pkgDPkgPM::Go(int OutStatusFd) */ char* list[5]; - TokSplitString(':', line, list, sizeof(list)/sizeof(list[0])); + if(!TokSplitString(':', line, list, sizeof(list)/sizeof(list[0]))) + // FIXME: dpkg sends multiline error messages sometimes (see + // #374195 for a example. we should support this by + // either patching dpkg to not send multiline over the + // statusfd or by rewriting the code here to deal with + // it. for now we just ignore it and not crash + continue; char *pkg = list[1]; char *action = _strstrip(list[2]); |