]> git.ipfire.org Git - pbs.git/commitdiff
builds: Use correct variable for the distribution
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Oct 2022 18:55:31 +0000 (18:55 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Oct 2022 18:55:31 +0000 (18:55 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/hub/builds.py

index fd2d40442cb7d880d74653f53c4e3adeb64d9691..9806ec5bab5d5c5129906e3bf6074cb936d3c416 100644 (file)
@@ -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)