)]}'
{"elements/zypper-minimal/README.rst":[{"author":{"_account_id":12459,"name":"Stephanie Miller","email":"stephane@alum.mit.edu","username":"cinerama"},"change_message_id":"c2a5868547f84bbec2c439bdf434159c678f66fc","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"1a95cdbc_93ac42ef","line":9,"updated":"2016-10-04 19:49:15.000000000","message":"Please document here that we need ZYPPER_REPOS.","commit_id":"5511507ab43447adb6921f5b2bffa8687252dcec"},{"author":{"_account_id":10035,"name":"greghaynes","email":"greg@greghaynes.net","username":"greghaynes"},"change_message_id":"17ad70ee835d6eee6de218a8bb1860f1e6e961fc","unresolved":false,"context_lines":[{"line_number":11,"context_line":"------------"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This element expects the `ZYPPER_REPOS` variable to be exported by the"},{"line_number":14,"context_line":"operating system element. This variable contains repository mappings in "},{"line_number":15,"context_line":"the following format: `${repo_name}\u003d\u003d\u003e${repo_url}`. For example::"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":" ZYPPER_REPOS\u003d\"update\u003d\u003ehttp://download.opensuse.org/update/leap/42.1/oss/ \""}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a95cdbc_265c377c","line":14,"updated":"2016-10-11 14:12:18.000000000","message":"nitpick: whitespace","commit_id":"c69c6c5a84da59bf3f7d6b8e79063d70d0ff4fe6"}],"elements/zypper-minimal/root.d/08-zypper-chroot":[{"author":{"_account_id":12459,"name":"Stephanie Miller","email":"stephane@alum.mit.edu","username":"cinerama"},"change_message_id":"c2a5868547f84bbec2c439bdf434159c678f66fc","unresolved":false,"context_lines":[{"line_number":24,"context_line":"set -eu"},{"line_number":25,"context_line":"set -o pipefail"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"[ -n \"${ZYPPER_REPOS}\" ]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"function cleanup() {"},{"line_number":30,"context_line":"    sudo umount $TMP_MOUNT_PATH/var/cache/zypp"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"1a95cdbc_b3621ed7","line":27,"range":{"start_line":27,"start_character":0,"end_line":27,"end_character":24},"updated":"2016-10-04 19:49:15.000000000","message":"This will work, but the naked test statement bugs me a little bit in terms of readability - perhaps better to make it more explicit?","commit_id":"5511507ab43447adb6921f5b2bffa8687252dcec"},{"author":{"_account_id":9369,"name":"Steve Kowalik","email":"steven@wedontsleep.org","username":"stevenk"},"change_message_id":"6857a28d73da04ce2d9679a22df4cb98d9443475","unresolved":false,"context_lines":[{"line_number":24,"context_line":"set -eu"},{"line_number":25,"context_line":"set -o pipefail"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"[ -n \"${ZYPPER_REPOS}\" ]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"function cleanup() {"},{"line_number":30,"context_line":"    sudo umount $TMP_MOUNT_PATH/var/cache/zypp"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"1a95cdbc_9fec37c9","line":27,"range":{"start_line":27,"start_character":0,"end_line":27,"end_character":24},"in_reply_to":"1a95cdbc_b3621ed7","updated":"2016-10-05 03:31:16.000000000","message":"We use this pattern extensively throughout dib already:\n\n% git grep \u0027^\\[ -n \\\"\\$\u0027 | wc -l\n45\n\nOf those 45, only 4 use || die.","commit_id":"5511507ab43447adb6921f5b2bffa8687252dcec"},{"author":{"_account_id":12459,"name":"Stephanie Miller","email":"stephane@alum.mit.edu","username":"cinerama"},"change_message_id":"c2a5868547f84bbec2c439bdf434159c678f66fc","unresolved":false,"context_lines":[{"line_number":36,"context_line":"ZYPPER_INSTALL_OPTS\u003d\"--no-confirm --no-recommends\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"for repo in ${ZYPPER_REPOS}; do"},{"line_number":39,"context_line":"    reponame\u003drepo-${repo%%\u003d\u003e*}"},{"line_number":40,"context_line":"    repouri\u003d${repo##*\u003d\u003e}"},{"line_number":41,"context_line":"    sudo zypper ${ZYPPER_TARGET_OPTS} addrepo --name ${reponame} --keep-packages ${repouri} ${reponame}"},{"line_number":42,"context_line":"done"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"1a95cdbc_96099034","line":39,"range":{"start_line":39,"start_character":0,"end_line":39,"end_character":30},"updated":"2016-10-04 19:49:15.000000000","message":"Fancy! :)","commit_id":"5511507ab43447adb6921f5b2bffa8687252dcec"}]}
