)]}'
{"stackrc":[{"author":{"_account_id":970,"name":"Dean Troyer","email":"dtroyer@gmail.com","username":"dtroyer"},"change_message_id":"24f67b350924bff6816fa0976f0b66382f3d6241","unresolved":false,"context_lines":[{"line_number":629,"context_line":"# Service startup timeout"},{"line_number":630,"context_line":"SERVICE_TIMEOUT\u003d${SERVICE_TIMEOUT:-60}"},{"line_number":631,"context_line":""},{"line_number":632,"context_line":"# Support alternative yum -- in future Fedora \u0027dnf\u0027 will become the"},{"line_number":633,"context_line":"# only supported installer, but for now \u0027yum\u0027 and \u0027dnf\u0027 are both"},{"line_number":634,"context_line":"# available in parallel with compatible CLIs.  Allow manual switching"},{"line_number":635,"context_line":"# till we get to the point we need to handle this automatically"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"9a80dd14_ba85a25a","side":"PARENT","line":632,"updated":"2015-03-12 17:08:13.000000000","message":"Reword this to reflect current reality","commit_id":"df16842d046fc5dc7bd3543158e40acdbffbfd41"},{"author":{"_account_id":17377,"name":"Federico Ressi","email":"federico.ressi@intel.com","username":"fressi"},"change_message_id":"073265f14020b18866fb62517b64c940faa7e67a","unresolved":false,"context_lines":[{"line_number":635,"context_line":"# as long as both name exists. \u0027dnf\u0027 available since f18 and it is able to do"},{"line_number":636,"context_line":"# dependency calculations much faster than the original yum."},{"line_number":637,"context_line":"# In f22 only \u0027dnf\u0027 installed by default, so defaulting to dnf by default."},{"line_number":638,"context_line":"if is_fedora \u0026\u0026 [[ \"$os_RELEASE\" -ge \"22\" ]]; then"},{"line_number":639,"context_line":"    YUM\u003d${YUM:-dnf}"},{"line_number":640,"context_line":"else"},{"line_number":641,"context_line":"    YUM\u003d${YUM:-yum}"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"da20952f_13b5bb30","line":638,"updated":"2015-09-11 22:43:31.000000000","message":"I think the fact only fedora 22 is using dnf is probably true today. What about fedora 23? Incoming Red Hat? Therefore I would instead check if dnf exists, or if yum exists. I would suggest something like this instead.\n\n if dnf --version; then\n   YUM\u003d${YUM:-dnf}\n elif yum --version; then\n   YUM\u003d${YUM:-dnf}\n fi","commit_id":"3dd4f12b1051dbbb40e0019b7f5510d3e47e4472"}]}
