forked from fedora-copr/copr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,6 +148,8 @@ def process_new_build(copr, form, create_new_build_factory, add_function, add_vi | |
"isolation": form.isolation.data, | ||
"with_build_id": form.with_build_id.data, | ||
"after_build_id": form.after_build_id.data, | ||
"allow_user_ssh": form.allow_user_ssh.data, | ||
"ssh_public_key": form.ssh_public_key.data, | ||
} | ||
|
||
try: | ||
|
@@ -453,6 +455,9 @@ def factory(**build_options): | |
|
||
################################ Repeat ################################ | ||
|
||
# TODO Not introduced in this PR but we should IMHO remove the POST method. | ||
# It is confusing because this method is not called when clicking the | ||
# submit button | ||
@coprs_ns.route("/<username>/<coprname>/repeat_build/<int:build_id>/", | ||
methods=["GET", "POST"]) | ||
@coprs_ns.route("/g/<group_name>/<coprname>/repeat_build/<int:build_id>/", | ||
|
@@ -512,9 +517,16 @@ def _copr_repeat_build(copr, build_id, allow_user_ssh): | |
# check checkbox on all the chroots that have not been (successfully) built before | ||
if (ch.name not in build_chroot_names) or (ch.name in build_failed_chroot_names): | ||
form.chroots.data.append(ch.name) | ||
|
||
# TODO Take the FAS SSH key (from our database) | ||
ssh_public_key = None | ||
if allow_user_ssh: | ||
ssh_public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCxZWz5K+BGQnVrirgJi+3pQhGY6+N6iiM1+u9jIOy4cC32DUnhRiUXBMfTqBQN0/0g2mG8W/Jn3Hmvzjet89Yk2rwcIzOghJ0mKLKYxbdVxgzMQRNmHmpIIis8yBfqHkNz5OO2BtxqckaQ5/xHQTwnYSLRCyNpi68ZwJUOzdvnL9y9zpH5IDJNQ6RlscLc/u6zQk9My3uPpNkwELE4brCQffHN1zc6MkDfVlVVqamWuF04YpqjoOWBe67aepUjC49eZy6uoWwxYg7IwPeZd1KyBg2y5W0dHj3OfXobv0bv4Bo/MXaMsEexJqlF4qF5A1wx2j5DIXlf4Lr8gyU9Td42C4CU2AkVjaue1e91Ay+ggotkOCEz+Wv5DKjOiTNWGS3InChbRYO2728pB6mjEh5w3I7RGF+ixtfk1w3GtVgU71uFquN3gFvVptDts/dQumsbyIl/ft0oi+FrodRH4Oz2Cb+FnDoOTMtQl5ykxzpJCDGWPr2ZXbcdIb0zFlmVnK0fjoSmpgmEwZG8Fpl2eVzxzIbM64L8+Qdr8VmTMNnmd6Z7ID8hR4qab5OBxh2IKhmashL4gZKPvsyuzfPu4sYXtIDZNBzi5sA31eTqogh1Cj6JEsUW/h+V3c7g7y3dtR3DGnPqM0H79yAlPdE5GOVq2A8OQT4snYPI+y9PrC9Hzw== [email protected]" | ||
|
||
return flask.render_template( | ||
"coprs/detail/add_build/rebuild.html", | ||
copr=copr, build=build, form=form) | ||
copr=copr, build=build, form=form, allow_user_ssh=allow_user_ssh, | ||
ssh_public_key=ssh_public_key) | ||
|
||
|
||
################################ Cancel ################################ | ||
|