X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/27f38567fe327ecaf7fb361c3cca6ee29e6300c9..0b80d7de373e94dd69c4f7a1e82e3ba26526b783:/apt-pkg/statechanges.cc diff --git a/apt-pkg/statechanges.cc b/apt-pkg/statechanges.cc index ed8f9f524..35af45538 100644 --- a/apt-pkg/statechanges.cc +++ b/apt-pkg/statechanges.cc @@ -25,7 +25,8 @@ public: #define APT_GETTERSETTER(Name, Container) \ void StateChanges::Name(pkgCache::VerIterator const &Ver) \ { \ - Container.push_back(Ver); \ + if (Ver.end() == false) \ + Container.push_back(Ver); \ }\ APT::VersionVector& StateChanges::Name() \ { \