{"action":"closed","number":1038,"pull_request":{"url":"https://api.github.com/repos/avocado-framework/avocado/pulls/1038","id":59990104,"html_url":"https://github.com/avocado-framework/avocado/pull/1038","diff_url":"https://github.com/avocado-framework/avocado/pull/1038.diff","patch_url":"https://github.com/avocado-framework/avocado/pull/1038.patch","issue_url":"https://api.github.com/repos/avocado-framework/avocado/issues/1038","number":1038,"state":"closed","locked":false,"title":"Asset fetcher [v6]","user":{"login":"apahim","id":4717757,"avatar_url":"https://avatars.githubusercontent.com/u/4717757?v=3","gravatar_id":"","url":"https://api.github.com/users/apahim","html_url":"https://github.com/apahim","followers_url":"https://api.github.com/users/apahim/followers","following_url":"https://api.github.com/users/apahim/following{/other_user}","gists_url":"https://api.github.com/users/apahim/gists{/gist_id}","starred_url":"https://api.github.com/users/apahim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apahim/subscriptions","organizations_url":"https://api.github.com/users/apahim/orgs","repos_url":"https://api.github.com/users/apahim/repos","events_url":"https://api.github.com/users/apahim/events{/privacy}","received_events_url":"https://api.github.com/users/apahim/received_events","type":"User","site_admin":false},"body":"v6:\r\n - Create symbolic links instead of copying file when `file://` location is provided.\r\n - Changed from `download._get_file()` to `download.url_download()` to be used for `http://` and `ftp://` , since we don't copy files from `file://` locations anymore. \r\n - Moved `avocado.core.data_dir._usable_rw_dir()` to `avocado.utils.path.usable_rw_dir()` and use it in asset fetcher.\r\n -  Some minor code style improvements.\r\n\r\nv5: #1028 \r\n - Support for multiple cache directories in cache_dirs configuration key.\r\n - Use test temporary workdir as ultimate cache for dowloaded files, if no writable caches are provided using configuration file.\r\n - Test if cache_dir is writable before using it as a download target.\r\n - Multiple use cases in docs.\r\n - Unit tests.\r\n\r\nv4: #1004 \r\n - Now fetch_asset() is an avocado.Test method.\r\n - Cache_dir defined in config file.\r\n - New avocado.Tets.cachedir attribute on the API.\r\n - Look for hashfile first.\r\n - Create hashfile when hash compute is needed.\r\n - Raise an exception on fetch_asset error.\r\n - Support location on asset name.\r\n - Default SHA1.\r\n\r\nv3: #997 \r\n - Asset() class.\r\n - Do not depend on yaml/multiplex.\r\n\r\nv2: #995 \r\n - Use full url, including the file name.\r\n - Docs.\r\n - Use job temporary dir as `cache_dir` default location.\r\n\r\nv1: #993 \r\n - Utility to find for files in multiple locations, caching it when successfully fetched.","created_at":"2016-02-19T18:47:12Z","updated_at":"2016-02-29T12:57:55Z","closed_at":"2016-02-29T12:57:55Z","merged_at":null,"merge_commit_sha":"3352528057cef9bd12921f11ecbc1cce75633c66","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/avocado-framework/avocado/pulls/1038/commits","review_comments_url":"https://api.github.com/repos/avocado-framework/avocado/pulls/1038/comments","review_comment_url":"https://api.github.com/repos/avocado-framework/avocado/pulls/comments{/number}","comments_url":"https://api.github.com/repos/avocado-framework/avocado/issues/1038/comments","statuses_url":"https://api.github.com/repos/avocado-framework/avocado/statuses/0c3f53a899f1fcac1bea8063a29afbdce3de5822","head":{"label":"apahim:asset_fetcher","ref":"asset_fetcher","sha":"0c3f53a899f1fcac1bea8063a29afbdce3de5822","user":{"login":"apahim","id":4717757,"avatar_url":"https://avatars.githubusercontent.com/u/4717757?v=3","gravatar_id":"","url":"https://api.github.com/users/apahim","html_url":"https://github.com/apahim","followers_url":"https://api.github.com/users/apahim/followers","following_url":"https://api.github.com/users/apahim/following{/other_user}","gists_url":"https://api.github.com/users/apahim/gists{/gist_id}","starred_url":"https://api.github.com/users/apahim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apahim/subscriptions","organizations_url":"https://api.github.com/users/apahim/orgs","repos_url":"https://api.github.com/users/apahim/repos","events_url":"https://api.github.com/users/apahim/events{/privacy}","received_events_url":"https://api.github.com/users/apahim/received_events","type":"User","site_admin":false},"repo":{"id":44574830,"name":"avocado","full_name":"apahim/avocado","owner":{"login":"apahim","id":4717757,"avatar_url":"https://avatars.githubusercontent.com/u/4717757?v=3","gravatar_id":"","url":"https://api.github.com/users/apahim","html_url":"https://github.com/apahim","followers_url":"https://api.github.com/users/apahim/followers","following_url":"https://api.github.com/users/apahim/following{/other_user}","gists_url":"https://api.github.com/users/apahim/gists{/gist_id}","starred_url":"https://api.github.com/users/apahim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apahim/subscriptions","organizations_url":"https://api.github.com/users/apahim/orgs","repos_url":"https://api.github.com/users/apahim/repos","events_url":"https://api.github.com/users/apahim/events{/privacy}","received_events_url":"https://api.github.com/users/apahim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apahim/avocado","description":"Avocado Test Framework","fork":true,"url":"https://api.github.com/repos/apahim/avocado","forks_url":"https://api.github.com/repos/apahim/avocado/forks","keys_url":"https://api.github.com/repos/apahim/avocado/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apahim/avocado/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apahim/avocado/teams","hooks_url":"https://api.github.com/repos/apahim/avocado/hooks","issue_events_url":"https://api.github.com/repos/apahim/avocado/issues/events{/number}","events_url":"https://api.github.com/repos/apahim/avocado/events","assignees_url":"https://api.github.com/repos/apahim/avocado/assignees{/user}","branches_url":"https://api.github.com/repos/apahim/avocado/branches{/branch}","tags_url":"https://api.github.com/repos/apahim/avocado/tags","blobs_url":"https://api.github.com/repos/apahim/avocado/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apahim/avocado/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apahim/avocado/git/refs{/sha}","trees_url":"https://api.github.com/repos/apahim/avocado/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apahim/avocado/statuses/{sha}","languages_url":"https://api.github.com/repos/apahim/avocado/languages","stargazers_url":"https://api.github.com/repos/apahim/avocado/stargazers","contributors_url":"https://api.github.com/repos/apahim/avocado/contributors","subscribers_url":"https://api.github.com/repos/apahim/avocado/subscribers","subscription_url":"https://api.github.com/repos/apahim/avocado/subscription","commits_url":"https://api.github.com/repos/apahim/avocado/commits{/sha}","git_commits_url":"https://api.github.com/repos/apahim/avocado/git/commits{/sha}","comments_url":"https://api.github.com/repos/apahim/avocado/comments{/number}","issue_comment_url":"https://api.github.com/repos/apahim/avocado/issues/comments{/number}","contents_url":"https://api.github.com/repos/apahim/avocado/contents/{+path}","compare_url":"https://api.github.com/repos/apahim/avocado/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apahim/avocado/merges","archive_url":"https://api.github.com/repos/apahim/avocado/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apahim/avocado/downloads","issues_url":"https://api.github.com/repos/apahim/avocado/issues{/number}","pulls_url":"https://api.github.com/repos/apahim/avocado/pulls{/number}","milestones_url":"https://api.github.com/repos/apahim/avocado/milestones{/number}","notifications_url":"https://api.github.com/repos/apahim/avocado/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apahim/avocado/labels{/name}","releases_url":"https://api.github.com/repos/apahim/avocado/releases{/id}","deployments_url":"https://api.github.com/repos/apahim/avocado/deployments","created_at":"2015-10-20T01:37:56Z","updated_at":"2016-01-12T16:29:34Z","pushed_at":"2016-02-26T18:57:28Z","git_url":"git://github.com/apahim/avocado.git","ssh_url":"git@github.com:apahim/avocado.git","clone_url":"https://github.com/apahim/avocado.git","svn_url":"https://github.com/apahim/avocado","homepage":"http://avocado-framework.github.io/","size":8048,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"avocado-framework:master","ref":"master","sha":"6335f210ac53949ef1186ffaf12cc4e77ecb7e1f","user":{"login":"avocado-framework","id":7245719,"avatar_url":"https://avatars.githubusercontent.com/u/7245719?v=3","gravatar_id":"","url":"https://api.github.com/users/avocado-framework","html_url":"https://github.com/avocado-framework","followers_url":"https://api.github.com/users/avocado-framework/followers","following_url":"https://api.github.com/users/avocado-framework/following{/other_user}","gists_url":"https://api.github.com/users/avocado-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/avocado-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avocado-framework/subscriptions","organizations_url":"https://api.github.com/users/avocado-framework/orgs","repos_url":"https://api.github.com/users/avocado-framework/repos","events_url":"https://api.github.com/users/avocado-framework/events{/privacy}","received_events_url":"https://api.github.com/users/avocado-framework/received_events","type":"Organization","site_admin":false},"repo":{"id":17449498,"name":"avocado","full_name":"avocado-framework/avocado","owner":{"login":"avocado-framework","id":7245719,"avatar_url":"https://avatars.githubusercontent.com/u/7245719?v=3","gravatar_id":"","url":"https://api.github.com/users/avocado-framework","html_url":"https://github.com/avocado-framework","followers_url":"https://api.github.com/users/avocado-framework/followers","following_url":"https://api.github.com/users/avocado-framework/following{/other_user}","gists_url":"https://api.github.com/users/avocado-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/avocado-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avocado-framework/subscriptions","organizations_url":"https://api.github.com/users/avocado-framework/orgs","repos_url":"https://api.github.com/users/avocado-framework/repos","events_url":"https://api.github.com/users/avocado-framework/events{/privacy}","received_events_url":"https://api.github.com/users/avocado-framework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/avocado-framework/avocado","description":"Avocado Test Framework","fork":false,"url":"https://api.github.com/repos/avocado-framework/avocado","forks_url":"https://api.github.com/repos/avocado-framework/avocado/forks","keys_url":"https://api.github.com/repos/avocado-framework/avocado/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avocado-framework/avocado/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avocado-framework/avocado/teams","hooks_url":"https://api.github.com/repos/avocado-framework/avocado/hooks","issue_events_url":"https://api.github.com/repos/avocado-framework/avocado/issues/events{/number}","events_url":"https://api.github.com/repos/avocado-framework/avocado/events","assignees_url":"https://api.github.com/repos/avocado-framework/avocado/assignees{/user}","branches_url":"https://api.github.com/repos/avocado-framework/avocado/branches{/branch}","tags_url":"https://api.github.com/repos/avocado-framework/avocado/tags","blobs_url":"https://api.github.com/repos/avocado-framework/avocado/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avocado-framework/avocado/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avocado-framework/avocado/git/refs{/sha}","trees_url":"https://api.github.com/repos/avocado-framework/avocado/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avocado-framework/avocado/statuses/{sha}","languages_url":"https://api.github.com/repos/avocado-framework/avocado/languages","stargazers_url":"https://api.github.com/repos/avocado-framework/avocado/stargazers","contributors_url":"https://api.github.com/repos/avocado-framework/avocado/contributors","subscribers_url":"https://api.github.com/repos/avocado-framework/avocado/subscribers","subscription_url":"https://api.github.com/repos/avocado-framework/avocado/subscription","commits_url":"https://api.github.com/repos/avocado-framework/avocado/commits{/sha}","git_commits_url":"https://api.github.com/repos/avocado-framework/avocado/git/commits{/sha}","comments_url":"https://api.github.com/repos/avocado-framework/avocado/comments{/number}","issue_comment_url":"https://api.github.com/repos/avocado-framework/avocado/issues/comments{/number}","contents_url":"https://api.github.com/repos/avocado-framework/avocado/contents/{+path}","compare_url":"https://api.github.com/repos/avocado-framework/avocado/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avocado-framework/avocado/merges","archive_url":"https://api.github.com/repos/avocado-framework/avocado/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avocado-framework/avocado/downloads","issues_url":"https://api.github.com/repos/avocado-framework/avocado/issues{/number}","pulls_url":"https://api.github.com/repos/avocado-framework/avocado/pulls{/number}","milestones_url":"https://api.github.com/repos/avocado-framework/avocado/milestones{/number}","notifications_url":"https://api.github.com/repos/avocado-framework/avocado/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avocado-framework/avocado/labels{/name}","releases_url":"https://api.github.com/repos/avocado-framework/avocado/releases{/id}","deployments_url":"https://api.github.com/repos/avocado-framework/avocado/deployments","created_at":"2014-03-05T17:52:27Z","updated_at":"2016-02-26T03:58:17Z","pushed_at":"2016-02-29T01:10:39Z","git_url":"git://github.com/avocado-framework/avocado.git","ssh_url":"git@github.com:avocado-framework/avocado.git","clone_url":"https://github.com/avocado-framework/avocado.git","svn_url":"https://github.com/avocado-framework/avocado","homepage":"http://avocado-framework.github.io/","size":12943,"stargazers_count":31,"watchers_count":31,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":21,"forks":37,"open_issues":21,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/1038"},"html":{"href":"https://github.com/avocado-framework/avocado/pull/1038"},"issue":{"href":"https://api.github.com/repos/avocado-framework/avocado/issues/1038"},"comments":{"href":"https://api.github.com/repos/avocado-framework/avocado/issues/1038/comments"},"review_comments":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/1038/comments"},"review_comment":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/avocado-framework/avocado/pulls/1038/commits"},"statuses":{"href":"https://api.github.com/repos/avocado-framework/avocado/statuses/0c3f53a899f1fcac1bea8063a29afbdce3de5822"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":427,"deletions":59,"changed_files":7}}