From: Michael Tremer Date: Mon, 22 May 2023 20:20:05 +0000 (+0000) Subject: builds: Fix depreacting builds when there is no deprecating build X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6858452a6d4320a4423cb9ba73ab49fcfe451f27;p=pbs.git builds: Fix depreacting builds when there is no deprecating build Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/builds.py b/src/buildservice/builds.py index c64221d8..795bfe13 100644 --- a/src/buildservice/builds.py +++ b/src/buildservice/builds.py @@ -892,7 +892,7 @@ class Build(base.DataObject): log.debug("Deprecating %s" % self) # Set user from build if not set - if user is None: + if not user and build: user = build.owner # Mark as deprecated