From: Michael Tremer Date: Tue, 18 Oct 2022 18:55:31 +0000 (+0000) Subject: builds: Use correct variable for the distribution X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a66cdb7bf745568019e285c5a0ee8800b19ec8d;p=pbs.git builds: Use correct variable for the distribution Signed-off-by: Michael Tremer --- diff --git a/src/hub/builds.py b/src/hub/builds.py index fd2d4044..9806ec5b 100644 --- a/src/hub/builds.py +++ b/src/hub/builds.py @@ -51,7 +51,7 @@ class CreateHandler(BaseHandler): raise tornado.web.HTTPError(404, "Could not find distribution: %s" % e) # Find the repository - repo = self.current_user.get_repo(distro, repo_name) + repo = self.current_user.get_repo(package.distro, repo_name) if not repo: raise tornado.web.HTTPError(404, "Could not find repository: %s" % repo_name)