)]}'
{"elements/package-installs/environment.d/50-python-2-or-3":[{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"073d47b993b0b4c960e900e50b09fc683d03193f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"export PYTHON_NAME\u003dpython2"},{"line_number":2,"context_line":"if ! type $PYTHON_NAME \u003e/dev/null 2\u003e\u00261; then"},{"line_number":3,"context_line":"    export PYTHON_NAME\u003dpython3"},{"line_number":4,"context_line":"fi"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"7a740942_8b5cde19","line":1,"updated":"2015-12-09 04:43:44.000000000","message":"i\u0027d put a comment above this explaining that some distros don\u0027t have python3.  it\u0027s obvious, but only once you\u0027ve fully parsed everything -- might as well give people a heads up","commit_id":"59be25220505e12005265ac1d41e20e683ff88c0"},{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"073d47b993b0b4c960e900e50b09fc683d03193f","unresolved":false,"context_lines":[{"line_number":5,"context_line":""},{"line_number":6,"context_line":"if ! type $PYTHON_NAME \u003e/dev/null 2\u003e\u00261; then"},{"line_number":7,"context_line":"    echo \"No python executable found!\""},{"line_number":8,"context_line":"    export PYTHON_NAME\u003d"},{"line_number":9,"context_line":"fi"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"7a740942_4ba116f7","line":8,"updated":"2015-12-09 04:43:44.000000000","message":"if we\u0027ve got nothing, die?  nothing good will happen","commit_id":"59be25220505e12005265ac1d41e20e683ff88c0"},{"author":{"_account_id":10035,"name":"greghaynes","email":"greg@greghaynes.net","username":"greghaynes"},"change_message_id":"987bc159e4024c986878443821f06ddf60a4332b","unresolved":false,"context_lines":[{"line_number":5,"context_line":""},{"line_number":6,"context_line":"if ! type $PYTHON_NAME \u003e/dev/null 2\u003e\u00261; then"},{"line_number":7,"context_line":"    echo \"No python executable found!\""},{"line_number":8,"context_line":"    export PYTHON_NAME\u003d"},{"line_number":9,"context_line":"fi"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"7a740942_6b2e4f8d","line":8,"in_reply_to":"7a740942_4ba116f7","updated":"2015-12-09 05:20:38.000000000","message":"This is source\u0027d so we cant exit - that would exit the calling shell.","commit_id":"59be25220505e12005265ac1d41e20e683ff88c0"}],"elements/package-installs/extra-data.d/99-squash-package-install":[{"author":{"_account_id":6488,"name":"Clint Byrum","email":"clint@fewbar.com","username":"clint-fewbar"},"change_message_id":"c71fc902dead9a351c2cd16a5010c805ad2addd6","unresolved":false,"context_lines":[{"line_number":5,"context_line":"set -eu"},{"line_number":6,"context_line":"set -o pipefail"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"python_path\u003d$(which python2 || which python3)"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"sudo -E $python_path $(dirname $0)/../bin/package-installs-squash --elements\u003d\"$IMAGE_ELEMENT\" --path\u003d$ELEMENTS_PATH $TMP_MOUNT_PATH/tmp/package-installs.json"}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"3a7e1126_8cc72363","line":8,"updated":"2015-12-21 22:27:42.000000000","message":"2015-12-12 19:46:09.256 | dib-run-parts Sat Dec 12 19:46:09 UTC 2015 Running /tmp/in_target.d/pre-install.d/01-dib-python\n2015-12-12 19:46:09.258 | /tmp/in_target.d/pre-install.d/01-dib-python: line 9: which: command not found","commit_id":"3b43e4dbb36d414aa6522177ef3d66ada9574634"}],"elements/package-installs/pre-install.d/02-package-installs":[{"author":{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},"change_message_id":"f7f813aa6ecddb9633dfa0def47ddc1a10ca1454","unresolved":false,"context_lines":[{"line_number":6,"context_line":"set -eu"},{"line_number":7,"context_line":"set -o pipefail"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"if ! type foo \u003e/dev/null 2\u003e\u00261; then"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"package-installs -d $(dirname $0)"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"7a740942_58c4dc8f","line":9,"updated":"2015-12-07 21:07:05.000000000","message":"debug","commit_id":"214f9571df7afe76cab281089d82f10c3257011f"},{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"073d47b993b0b4c960e900e50b09fc683d03193f","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"package-installs -d $(dirname $0)"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"# Some distros have which, others do not package it"},{"line_number":12,"context_line":"install-packages which || true"},{"line_number":13,"context_line":"if ! type which \u003e/dev/null 2\u003e\u00261; then"},{"line_number":14,"context_line":"    echo \"No which binary found.\""}],"source_content_type":"application/x-shellscript","patch_set":5,"id":"7a740942_c85669cd","line":11,"updated":"2015-12-09 04:43:44.000000000","message":"Why do we need which in the picture?\n\nall of the pre-install elements copy everything to /usr/local/bin , so it seems like we should just call it directly?","commit_id":"59be25220505e12005265ac1d41e20e683ff88c0"}]}
