summaryrefslogtreecommitdiffstats
path: root/apt-pkg/deb/deblistparser.cc
diff options
context:
space:
mode:
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;