From: Michael Tremer Date: Wed, 13 Sep 2023 15:52:19 +0000 (+0000) Subject: jobs: Fix UUID comparison that differs in type X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=369f975d0eb05b7c2d2e26ffad82949f48550307;p=pbs.git jobs: Fix UUID comparison that differs in type We use UUID for PostgreSQL and now receive the UUID in Python's UUID type which surprisingly does not compare to strings... Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/jobs.py b/src/buildservice/jobs.py index d0ff8e19..08a6720c 100644 --- a/src/buildservice/jobs.py +++ b/src/buildservice/jobs.py @@ -1054,7 +1054,7 @@ class Job(base.DataObject): for pkg in p.whatprovides("%s = %s" % (package.name, package.evr)): # XXX we should search straight away for the UUID here, # but that doesn't seem to work right now - if not package.uuid == pkg.uuid: + if not ("%s" % package.uuid) == ("%s" % pkg.uuid): continue # Find all packages that depend on the current package