diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 10:16:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 10:16:57 +0000 |
commit | 5fbfcdad1efbea3ce6580c682d813daa79c3653a (patch) | |
tree | 8a1d7c6b9c1bed457a7ee50b5919da8b9852b8f9 /apt-pkg/deb | |
parent | Adding upstream version 2.7.13. (diff) | |
download | apt-5fbfcdad1efbea3ce6580c682d813daa79c3653a.tar.xz apt-5fbfcdad1efbea3ce6580c682d813daa79c3653a.zip |
Adding upstream version 2.7.14.upstream/2.7.14
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r-- | apt-pkg/deb/deblistparser.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc index 8099b36..46c3629 100644 --- a/apt-pkg/deb/deblistparser.cc +++ b/apt-pkg/deb/deblistparser.cc @@ -522,7 +522,17 @@ const char *debListParser::ConvertRelation(const char *I,unsigned int &Op) Op = pkgCache::Dep::Equals; I++; break; - + + // != is unsupported packaging + case '!': + if (*(I + 1) == '=') + { + I = I + 2; + Op = pkgCache::Dep::NotEquals; + break; + } + [[fallthrough]]; + // HACK around bad package definitions default: Op = pkgCache::Dep::Equals; |