{"action":"created","comment":{"url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/pulls/comments/56747720","id":56747720,"diff_hunk":"@@ -0,0 +1,159 @@\n+#!/bin/bash\n+\n+################################################################################\n+#      This file is part of LibreELEC - http://www.libreelec.tv\n+#      Copyright (C) 2009-2016 Lukas Rusak (lrusak@libreelec.tv)\n+#\n+#  LibreELEC is free software: you can redistribute it and/or modify\n+#  it under the terms of the GNU General Public License as published by\n+#  the Free Software Foundation, either version 2 of the License, or\n+#  (at your option) any later version.\n+#\n+#  LibreELEC is distributed in the hope that it will be useful,\n+#  but WITHOUT ANY WARRANTY; without even the implied warranty of\n+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+#  GNU General Public License for more details.\n+#\n+#  You should have received a copy of the GNU General Public License\n+#  along with LibreELEC.  If not, see <http://www.gnu.org/licenses/>.\n+################################################################################\n+\n+. config/options\n+\n+update_addons_xml() {\n+  echo \"[*] cleanup addons ...\"\n+  olddir=\"\"\n+  find target/addons/$ADDON_VERSION -iname 'changelog*.txt' | sort -r | while read line ; do\n+    dir=$(dirname $line)\n+    if [ \"$olddir\" = \"$dir\" ] ; then\n+      rm -f $line\n+    fi\n+    olddir=$dir\n+  done\n+\n+  olddir=\"\"\n+  find target/addons/$ADDON_VERSION -iname '*.zip' | sort -r | while read line ; do","path":"scripts/repo-tool","position":35,"original_position":35,"commit_id":"d01649ca43b1016a9b296006a9a7791db2c15090","original_commit_id":"d01649ca43b1016a9b296006a9a7791db2c15090","user":{"login":"stefansaraev","id":758738,"avatar_url":"https://avatars.githubusercontent.com/u/758738?v=3","gravatar_id":"","url":"https://api.github.com/users/stefansaraev","html_url":"https://github.com/stefansaraev","followers_url":"https://api.github.com/users/stefansaraev/followers","following_url":"https://api.github.com/users/stefansaraev/following{/other_user}","gists_url":"https://api.github.com/users/stefansaraev/gists{/gist_id}","starred_url":"https://api.github.com/users/stefansaraev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefansaraev/subscriptions","organizations_url":"https://api.github.com/users/stefansaraev/orgs","repos_url":"https://api.github.com/users/stefansaraev/repos","events_url":"https://api.github.com/users/stefansaraev/events{/privacy}","received_events_url":"https://api.github.com/users/stefansaraev/received_events","type":"User","site_admin":false},"body":"you could package natsort as \"host package\", build it as part of toolchain and use it from $TOOLCHAIN/bin (which is in $PATH anyway after sourcing config/options)","created_at":"2016-03-19T11:13:28Z","updated_at":"2016-03-19T11:13:28Z","html_url":"https://github.com/LibreELEC/LibreELEC.tv/pull/36#discussion_r56747720","pull_request_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/pulls/comments/56747720"},"html":{"href":"https://github.com/LibreELEC/LibreELEC.tv/pull/36#discussion_r56747720"},"pull_request":{"href":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/pulls/36","id":63462958,"html_url":"https://github.com/LibreELEC/LibreELEC.tv/pull/36","diff_url":"https://github.com/LibreELEC/LibreELEC.tv/pull/36.diff","patch_url":"https://github.com/LibreELEC/LibreELEC.tv/pull/36.patch","issue_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/issues/36","number":36,"state":"open","locked":false,"title":"new scripts","user":{"login":"lrusak","id":1616460,"avatar_url":"https://avatars.githubusercontent.com/u/1616460?v=3","gravatar_id":"","url":"https://api.github.com/users/lrusak","html_url":"https://github.com/lrusak","followers_url":"https://api.github.com/users/lrusak/followers","following_url":"https://api.github.com/users/lrusak/following{/other_user}","gists_url":"https://api.github.com/users/lrusak/gists{/gist_id}","starred_url":"https://api.github.com/users/lrusak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrusak/subscriptions","organizations_url":"https://api.github.com/users/lrusak/orgs","repos_url":"https://api.github.com/users/lrusak/repos","events_url":"https://api.github.com/users/lrusak/events{/privacy}","received_events_url":"https://api.github.com/users/lrusak/received_events","type":"User","site_admin":false},"body":"repo-tool is for dealing with addon repos. It allows one to bump the PKG_REV, update the addons.xml and sync the addon repos.\r\n\r\ndownload-tool allows one to download all the necessary packages before building LibreELEC.\r\nSetting the PROJECT and ARCH is require because there are package.mk files that use case statements to select the PKG_VERSION depending on the PROJECT or ARCH.\r\n\r\n","created_at":"2016-03-19T08:47:02Z","updated_at":"2016-03-19T11:13:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f270127b711c7c1d103eb94a9a210e80a150d88","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/pulls/36/commits","review_comments_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/pulls/36/comments","review_comment_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/issues/36/comments","statuses_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/statuses/d01649ca43b1016a9b296006a9a7791db2c15090","head":{"label":"lrusak:scripts","ref":"scripts","sha":"d01649ca43b1016a9b296006a9a7791db2c15090","user":{"login":"lrusak","id":1616460,"avatar_url":"https://avatars.githubusercontent.com/u/1616460?v=3","gravatar_id":"","url":"https://api.github.com/users/lrusak","html_url":"https://github.com/lrusak","followers_url":"https://api.github.com/users/lrusak/followers","following_url":"https://api.github.com/users/lrusak/following{/other_user}","gists_url":"https://api.github.com/users/lrusak/gists{/gist_id}","starred_url":"https://api.github.com/users/lrusak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrusak/subscriptions","organizations_url":"https://api.github.com/users/lrusak/orgs","repos_url":"https://api.github.com/users/lrusak/repos","events_url":"https://api.github.com/users/lrusak/events{/privacy}","received_events_url":"https://api.github.com/users/lrusak/received_events","type":"User","site_admin":false},"repo":{"id":54222835,"name":"LibreELEC.tv","full_name":"lrusak/LibreELEC.tv","owner":{"login":"lrusak","id":1616460,"avatar_url":"https://avatars.githubusercontent.com/u/1616460?v=3","gravatar_id":"","url":"https://api.github.com/users/lrusak","html_url":"https://github.com/lrusak","followers_url":"https://api.github.com/users/lrusak/followers","following_url":"https://api.github.com/users/lrusak/following{/other_user}","gists_url":"https://api.github.com/users/lrusak/gists{/gist_id}","starred_url":"https://api.github.com/users/lrusak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrusak/subscriptions","organizations_url":"https://api.github.com/users/lrusak/orgs","repos_url":"https://api.github.com/users/lrusak/repos","events_url":"https://api.github.com/users/lrusak/events{/privacy}","received_events_url":"https://api.github.com/users/lrusak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lrusak/LibreELEC.tv","description":"'Just enough OS' for Kodi","fork":true,"url":"https://api.github.com/repos/lrusak/LibreELEC.tv","forks_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/forks","keys_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/teams","hooks_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/hooks","issue_events_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/issues/events{/number}","events_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/events","assignees_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/assignees{/user}","branches_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/branches{/branch}","tags_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/tags","blobs_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/git/refs{/sha}","trees_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/statuses/{sha}","languages_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/languages","stargazers_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/stargazers","contributors_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/contributors","subscribers_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/subscribers","subscription_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/subscription","commits_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/commits{/sha}","git_commits_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/git/commits{/sha}","comments_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/comments{/number}","issue_comment_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/issues/comments{/number}","contents_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/contents/{+path}","compare_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/merges","archive_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/downloads","issues_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/issues{/number}","pulls_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/pulls{/number}","milestones_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/milestones{/number}","notifications_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/labels{/name}","releases_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/releases{/id}","deployments_url":"https://api.github.com/repos/lrusak/LibreELEC.tv/deployments","created_at":"2016-03-18T18:22:13Z","updated_at":"2016-03-18T18:22:16Z","pushed_at":"2016-03-19T09:17:29Z","git_url":"git://github.com/lrusak/LibreELEC.tv.git","ssh_url":"git@github.com:lrusak/LibreELEC.tv.git","clone_url":"https://github.com/lrusak/LibreELEC.tv.git","svn_url":"https://github.com/lrusak/LibreELEC.tv","homepage":"http://libreelec.tv","size":222949,"stargazers_count":0,"watchers_count":0,"language":"Makefile","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LibreELEC:master","ref":"master","sha":"1cb2f57d818796489ecd9fe0624a467189e866ba","user":{"login":"LibreELEC","id":17335241,"avatar_url":"https://avatars.githubusercontent.com/u/17335241?v=3","gravatar_id":"","url":"https://api.github.com/users/LibreELEC","html_url":"https://github.com/LibreELEC","followers_url":"https://api.github.com/users/LibreELEC/followers","following_url":"https://api.github.com/users/LibreELEC/following{/other_user}","gists_url":"https://api.github.com/users/LibreELEC/gists{/gist_id}","starred_url":"https://api.github.com/users/LibreELEC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LibreELEC/subscriptions","organizations_url":"https://api.github.com/users/LibreELEC/orgs","repos_url":"https://api.github.com/users/LibreELEC/repos","events_url":"https://api.github.com/users/LibreELEC/events{/privacy}","received_events_url":"https://api.github.com/users/LibreELEC/received_events","type":"Organization","site_admin":false},"repo":{"id":53762444,"name":"LibreELEC.tv","full_name":"LibreELEC/LibreELEC.tv","owner":{"login":"LibreELEC","id":17335241,"avatar_url":"https://avatars.githubusercontent.com/u/17335241?v=3","gravatar_id":"","url":"https://api.github.com/users/LibreELEC","html_url":"https://github.com/LibreELEC","followers_url":"https://api.github.com/users/LibreELEC/followers","following_url":"https://api.github.com/users/LibreELEC/following{/other_user}","gists_url":"https://api.github.com/users/LibreELEC/gists{/gist_id}","starred_url":"https://api.github.com/users/LibreELEC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LibreELEC/subscriptions","organizations_url":"https://api.github.com/users/LibreELEC/orgs","repos_url":"https://api.github.com/users/LibreELEC/repos","events_url":"https://api.github.com/users/LibreELEC/events{/privacy}","received_events_url":"https://api.github.com/users/LibreELEC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LibreELEC/LibreELEC.tv","description":"'Just enough OS' for Kodi","fork":false,"url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv","forks_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/forks","keys_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/teams","hooks_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/hooks","issue_events_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/issues/events{/number}","events_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/events","assignees_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/assignees{/user}","branches_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/branches{/branch}","tags_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/tags","blobs_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/git/refs{/sha}","trees_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/statuses/{sha}","languages_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/languages","stargazers_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/stargazers","contributors_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/contributors","subscribers_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/subscribers","subscription_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/subscription","commits_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/commits{/sha}","git_commits_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/git/commits{/sha}","comments_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/comments{/number}","issue_comment_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/issues/comments{/number}","contents_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/contents/{+path}","compare_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/merges","archive_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/downloads","issues_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/issues{/number}","pulls_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/pulls{/number}","milestones_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/milestones{/number}","notifications_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/labels{/name}","releases_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/releases{/id}","deployments_url":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/deployments","created_at":"2016-03-13T01:46:18Z","updated_at":"2016-03-18T07:04:27Z","pushed_at":"2016-03-19T08:55:53Z","git_url":"git://github.com/LibreELEC/LibreELEC.tv.git","ssh_url":"git@github.com:LibreELEC/LibreELEC.tv.git","clone_url":"https://github.com/LibreELEC/LibreELEC.tv.git","svn_url":"https://github.com/LibreELEC/LibreELEC.tv","homepage":"http://libreelec.tv","size":233054,"stargazers_count":13,"watchers_count":13,"language":"Makefile","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":9,"forks":9,"open_issues":9,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/pulls/36"},"html":{"href":"https://github.com/LibreELEC/LibreELEC.tv/pull/36"},"issue":{"href":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/issues/36"},"comments":{"href":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/LibreELEC/LibreELEC.tv/statuses/d01649ca43b1016a9b296006a9a7791db2c15090"}}}}