summaryrefslogtreecommitdiffstats
path: root/apt-pkg/deb/deblistparser.cc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 10:17:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 10:17:41 +0000
commitf228636c02dc1bcb88704933b7e2049a31116d13 (patch)
tree2d923ac0acd8300f6e9f13f3fd0c85287565699e /apt-pkg/deb/deblistparser.cc
parentReleasing progress-linux version 2.7.13-0.0~progress7.99u1. (diff)
downloadapt-f228636c02dc1bcb88704933b7e2049a31116d13.tar.xz
apt-f228636c02dc1bcb88704933b7e2049a31116d13.zip
Merging upstream version 2.7.14.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'apt-pkg/deb/deblistparser.cc')
-rw-r--r--apt-pkg/deb/deblistparser.cc12
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;