diff options
author | Jaywalker <jwilliams@nsllc.com> | 2018-02-06 23:51:41 -0600 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-12-26 15:10:36 -1000 |
commit | 18876defc0a550f09b4ca64f331d804101396e65 (patch) | |
tree | f5dd89730bcc3e93ad27e1a4c3603edb70bc58ba /apt-pkg/tagfile.cc | |
parent | 1b9f9625972ed004ad9bdd7b1d4ce7ee3f152d45 (diff) |
Fixed system() using coolstar's patch and added other required patches
Diffstat (limited to 'apt-pkg/tagfile.cc')
-rw-r--r-- | apt-pkg/tagfile.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apt-pkg/tagfile.cc b/apt-pkg/tagfile.cc index 1e7f2867c..427e459bd 100644 --- a/apt-pkg/tagfile.cc +++ b/apt-pkg/tagfile.cc @@ -625,6 +625,14 @@ void pkgTagSection::Trim() for (; Stop > Section + 2 && (Stop[-2] == '\n' || Stop[-2] == '\r'); Stop--); } /*}}}*/ +// TagSection::Trim - Trim off any trailing garbage /*{{{*/ +// --------------------------------------------------------------------- +/* There should be exactly 1 newline at the end of the buffer, no more. */ +void pkgTagSection::Trim() +{ + for (; Stop > Section + 2 && (Stop[-2] == '\n' || Stop[-2] == '\r'); Stop--); +} + // TagSection::Exists - return True if a tag exists /*{{{*/ bool pkgTagSection::Exists(StringView Tag) const { |