{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/2461","labels_url":"https://api.github.com/repos/elastic/logstash/issues/2461/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/2461/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/2461/events","html_url":"https://github.com/elastic/logstash/pull/2461","id":55730010,"number":2461,"title":"rpm+deb: make pre-releases sort lower than GA releases","user":{"login":"vincentbernat","id":631446,"avatar_url":"https://avatars.githubusercontent.com/u/631446?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentbernat","html_url":"https://github.com/vincentbernat","followers_url":"https://api.github.com/users/vincentbernat/followers","following_url":"https://api.github.com/users/vincentbernat/following{/other_user}","gists_url":"https://api.github.com/users/vincentbernat/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentbernat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentbernat/subscriptions","organizations_url":"https://api.github.com/users/vincentbernat/orgs","repos_url":"https://api.github.com/users/vincentbernat/repos","events_url":"https://api.github.com/users/vincentbernat/events{/privacy}","received_events_url":"https://api.github.com/users/vincentbernat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/logstash/labels/packaging","name":"packaging","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-01-28T09:01:05Z","updated_at":"2015-12-11T19:28:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/logstash/pulls/2461","html_url":"https://github.com/elastic/logstash/pull/2461","diff_url":"https://github.com/elastic/logstash/pull/2461.diff","patch_url":"https://github.com/elastic/logstash/pull/2461.patch"},"body":"The current replacement works for rc and dev versions but is ineffective\r\nfor stuff like alpha and beta. We take a more generic method: whenever\r\nwe get a dot followed by an alphabetic character, we replace the `.` by\r\n`~`.\r\n\r\n    $ for v in 1.5.0 1.5.0.dev 1.5.0.beta2.dev ; do echo -n $v\\ ; echo $v | sed 's/\\.\\([[:alpha:]]\\)/~\\1/g' ; done\r\n    1.5.0 1.5.0\r\n    1.5.0.dev 1.5.0~dev\r\n    1.5.0.beta2.dev 1.5.0~beta2~dev"},"comment":{"url":"https://api.github.com/repos/elastic/logstash/issues/comments/164026643","html_url":"https://github.com/elastic/logstash/pull/2461#issuecomment-164026643","issue_url":"https://api.github.com/repos/elastic/logstash/issues/2461","id":164026643,"user":{"login":"remyd1","id":929620,"avatar_url":"https://avatars.githubusercontent.com/u/929620?v=3","gravatar_id":"","url":"https://api.github.com/users/remyd1","html_url":"https://github.com/remyd1","followers_url":"https://api.github.com/users/remyd1/followers","following_url":"https://api.github.com/users/remyd1/following{/other_user}","gists_url":"https://api.github.com/users/remyd1/gists{/gist_id}","starred_url":"https://api.github.com/users/remyd1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remyd1/subscriptions","organizations_url":"https://api.github.com/users/remyd1/orgs","repos_url":"https://api.github.com/users/remyd1/repos","events_url":"https://api.github.com/users/remyd1/events{/privacy}","received_events_url":"https://api.github.com/users/remyd1/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T19:28:03Z","updated_at":"2015-12-11T19:28:03Z","body":"If you have problems with rpm/deb packaging, take a look at this\n'singularity' project:\nhttps://www.youtube.com/watch?v=KGzixMgx8ZA\n\nYou can find the code on github.\n\nBest,\nRemy\n\n2015-11-21 9:02 GMT+01:00 Vincent Bernat <notifications@github.com>:\n\n> BTW, the epoch would need to be bumped a last time due to the 2.0.0\n> release. Can do a PR if needed.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/elastic/logstash/pull/2461#issuecomment-158611120>.\n>\n"}}