{"action":"opened","number":62,"pull_request":{"url":"https://api.github.com/repos/rpm-software-management/libhif/pulls/62","id":46456697,"html_url":"https://github.com/rpm-software-management/libhif/pull/62","diff_url":"https://github.com/rpm-software-management/libhif/pull/62.diff","patch_url":"https://github.com/rpm-software-management/libhif/pull/62.patch","issue_url":"https://api.github.com/repos/rpm-software-management/libhif/issues/62","number":62,"state":"open","locked":false,"title":"source: Request multiple packages at once from librepo","user":{"login":"cgwalters","id":244096,"avatar_url":"https://avatars.githubusercontent.com/u/244096?v=3","gravatar_id":"","url":"https://api.github.com/users/cgwalters","html_url":"https://github.com/cgwalters","followers_url":"https://api.github.com/users/cgwalters/followers","following_url":"https://api.github.com/users/cgwalters/following{/other_user}","gists_url":"https://api.github.com/users/cgwalters/gists{/gist_id}","starred_url":"https://api.github.com/users/cgwalters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgwalters/subscriptions","organizations_url":"https://api.github.com/users/cgwalters/orgs","repos_url":"https://api.github.com/users/cgwalters/repos","events_url":"https://api.github.com/users/cgwalters/events{/privacy}","received_events_url":"https://api.github.com/users/cgwalters/received_events","type":"User","site_admin":false},"body":"Ultimately, what we want here is to ensure we're using HTTP\r\nkeep-alives.  While curl does have some support for automatically\r\nreusing connections behind the scenes, it's going to work more\r\nreliably when we hand librepo multiple requests at once.\r\n\r\nTo do that, we need to determine which requested packages come from\r\nwhich source.\r\n\r\nEven better would be to parallelize downloads from multiple sources,\r\nbut that can be a later PR.\r\n\r\nMy long term goal here is to change rpm-ostree to unpack RPMs as\r\nthey're being downloaded, which would be a dramatic efficiency\r\nimprovement.","created_at":"2015-09-30T21:07:54Z","updated_at":"2015-09-30T21:07:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rpm-software-management/libhif/pulls/62/commits","review_comments_url":"https://api.github.com/repos/rpm-software-management/libhif/pulls/62/comments","review_comment_url":"https://api.github.com/repos/rpm-software-management/libhif/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rpm-software-management/libhif/issues/62/comments","statuses_url":"https://api.github.com/repos/rpm-software-management/libhif/statuses/41652f6cb7fdce9d1dcbb7a5bd5be91963793d91","head":{"label":"cgwalters:source-multi-download","ref":"source-multi-download","sha":"41652f6cb7fdce9d1dcbb7a5bd5be91963793d91","user":{"login":"cgwalters","id":244096,"avatar_url":"https://avatars.githubusercontent.com/u/244096?v=3","gravatar_id":"","url":"https://api.github.com/users/cgwalters","html_url":"https://github.com/cgwalters","followers_url":"https://api.github.com/users/cgwalters/followers","following_url":"https://api.github.com/users/cgwalters/following{/other_user}","gists_url":"https://api.github.com/users/cgwalters/gists{/gist_id}","starred_url":"https://api.github.com/users/cgwalters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgwalters/subscriptions","organizations_url":"https://api.github.com/users/cgwalters/orgs","repos_url":"https://api.github.com/users/cgwalters/repos","events_url":"https://api.github.com/users/cgwalters/events{/privacy}","received_events_url":"https://api.github.com/users/cgwalters/received_events","type":"User","site_admin":false},"repo":{"id":19494652,"name":"libhif","full_name":"cgwalters/libhif","owner":{"login":"cgwalters","id":244096,"avatar_url":"https://avatars.githubusercontent.com/u/244096?v=3","gravatar_id":"","url":"https://api.github.com/users/cgwalters","html_url":"https://github.com/cgwalters","followers_url":"https://api.github.com/users/cgwalters/followers","following_url":"https://api.github.com/users/cgwalters/following{/other_user}","gists_url":"https://api.github.com/users/cgwalters/gists{/gist_id}","starred_url":"https://api.github.com/users/cgwalters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgwalters/subscriptions","organizations_url":"https://api.github.com/users/cgwalters/orgs","repos_url":"https://api.github.com/users/cgwalters/repos","events_url":"https://api.github.com/users/cgwalters/events{/privacy}","received_events_url":"https://api.github.com/users/cgwalters/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cgwalters/libhif","description":"Simple package manager built on top of hawkey and librepo","fork":true,"url":"https://api.github.com/repos/cgwalters/libhif","forks_url":"https://api.github.com/repos/cgwalters/libhif/forks","keys_url":"https://api.github.com/repos/cgwalters/libhif/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cgwalters/libhif/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cgwalters/libhif/teams","hooks_url":"https://api.github.com/repos/cgwalters/libhif/hooks","issue_events_url":"https://api.github.com/repos/cgwalters/libhif/issues/events{/number}","events_url":"https://api.github.com/repos/cgwalters/libhif/events","assignees_url":"https://api.github.com/repos/cgwalters/libhif/assignees{/user}","branches_url":"https://api.github.com/repos/cgwalters/libhif/branches{/branch}","tags_url":"https://api.github.com/repos/cgwalters/libhif/tags","blobs_url":"https://api.github.com/repos/cgwalters/libhif/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cgwalters/libhif/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cgwalters/libhif/git/refs{/sha}","trees_url":"https://api.github.com/repos/cgwalters/libhif/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cgwalters/libhif/statuses/{sha}","languages_url":"https://api.github.com/repos/cgwalters/libhif/languages","stargazers_url":"https://api.github.com/repos/cgwalters/libhif/stargazers","contributors_url":"https://api.github.com/repos/cgwalters/libhif/contributors","subscribers_url":"https://api.github.com/repos/cgwalters/libhif/subscribers","subscription_url":"https://api.github.com/repos/cgwalters/libhif/subscription","commits_url":"https://api.github.com/repos/cgwalters/libhif/commits{/sha}","git_commits_url":"https://api.github.com/repos/cgwalters/libhif/git/commits{/sha}","comments_url":"https://api.github.com/repos/cgwalters/libhif/comments{/number}","issue_comment_url":"https://api.github.com/repos/cgwalters/libhif/issues/comments{/number}","contents_url":"https://api.github.com/repos/cgwalters/libhif/contents/{+path}","compare_url":"https://api.github.com/repos/cgwalters/libhif/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cgwalters/libhif/merges","archive_url":"https://api.github.com/repos/cgwalters/libhif/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cgwalters/libhif/downloads","issues_url":"https://api.github.com/repos/cgwalters/libhif/issues{/number}","pulls_url":"https://api.github.com/repos/cgwalters/libhif/pulls{/number}","milestones_url":"https://api.github.com/repos/cgwalters/libhif/milestones{/number}","notifications_url":"https://api.github.com/repos/cgwalters/libhif/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cgwalters/libhif/labels{/name}","releases_url":"https://api.github.com/repos/cgwalters/libhif/releases{/id}","created_at":"2014-05-06T13:11:38Z","updated_at":"2014-07-14T13:31:09Z","pushed_at":"2015-09-30T21:07:41Z","git_url":"git://github.com/cgwalters/libhif.git","ssh_url":"git@github.com:cgwalters/libhif.git","clone_url":"https://github.com/cgwalters/libhif.git","svn_url":"https://github.com/cgwalters/libhif","homepage":null,"size":810,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"rpm-software-management:master","ref":"master","sha":"4b8f14cf25fca6d3381b8ba3b3e80d7a5f91d661","user":{"login":"rpm-software-management","id":8504469,"avatar_url":"https://avatars.githubusercontent.com/u/8504469?v=3","gravatar_id":"","url":"https://api.github.com/users/rpm-software-management","html_url":"https://github.com/rpm-software-management","followers_url":"https://api.github.com/users/rpm-software-management/followers","following_url":"https://api.github.com/users/rpm-software-management/following{/other_user}","gists_url":"https://api.github.com/users/rpm-software-management/gists{/gist_id}","starred_url":"https://api.github.com/users/rpm-software-management/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpm-software-management/subscriptions","organizations_url":"https://api.github.com/users/rpm-software-management/orgs","repos_url":"https://api.github.com/users/rpm-software-management/repos","events_url":"https://api.github.com/users/rpm-software-management/events{/privacy}","received_events_url":"https://api.github.com/users/rpm-software-management/received_events","type":"Organization","site_admin":false},"repo":{"id":18206372,"name":"libhif","full_name":"rpm-software-management/libhif","owner":{"login":"rpm-software-management","id":8504469,"avatar_url":"https://avatars.githubusercontent.com/u/8504469?v=3","gravatar_id":"","url":"https://api.github.com/users/rpm-software-management","html_url":"https://github.com/rpm-software-management","followers_url":"https://api.github.com/users/rpm-software-management/followers","following_url":"https://api.github.com/users/rpm-software-management/following{/other_user}","gists_url":"https://api.github.com/users/rpm-software-management/gists{/gist_id}","starred_url":"https://api.github.com/users/rpm-software-management/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpm-software-management/subscriptions","organizations_url":"https://api.github.com/users/rpm-software-management/orgs","repos_url":"https://api.github.com/users/rpm-software-management/repos","events_url":"https://api.github.com/users/rpm-software-management/events{/privacy}","received_events_url":"https://api.github.com/users/rpm-software-management/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rpm-software-management/libhif","description":"Simple package manager built on top of hawkey and librepo","fork":false,"url":"https://api.github.com/repos/rpm-software-management/libhif","forks_url":"https://api.github.com/repos/rpm-software-management/libhif/forks","keys_url":"https://api.github.com/repos/rpm-software-management/libhif/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rpm-software-management/libhif/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rpm-software-management/libhif/teams","hooks_url":"https://api.github.com/repos/rpm-software-management/libhif/hooks","issue_events_url":"https://api.github.com/repos/rpm-software-management/libhif/issues/events{/number}","events_url":"https://api.github.com/repos/rpm-software-management/libhif/events","assignees_url":"https://api.github.com/repos/rpm-software-management/libhif/assignees{/user}","branches_url":"https://api.github.com/repos/rpm-software-management/libhif/branches{/branch}","tags_url":"https://api.github.com/repos/rpm-software-management/libhif/tags","blobs_url":"https://api.github.com/repos/rpm-software-management/libhif/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rpm-software-management/libhif/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rpm-software-management/libhif/git/refs{/sha}","trees_url":"https://api.github.com/repos/rpm-software-management/libhif/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rpm-software-management/libhif/statuses/{sha}","languages_url":"https://api.github.com/repos/rpm-software-management/libhif/languages","stargazers_url":"https://api.github.com/repos/rpm-software-management/libhif/stargazers","contributors_url":"https://api.github.com/repos/rpm-software-management/libhif/contributors","subscribers_url":"https://api.github.com/repos/rpm-software-management/libhif/subscribers","subscription_url":"https://api.github.com/repos/rpm-software-management/libhif/subscription","commits_url":"https://api.github.com/repos/rpm-software-management/libhif/commits{/sha}","git_commits_url":"https://api.github.com/repos/rpm-software-management/libhif/git/commits{/sha}","comments_url":"https://api.github.com/repos/rpm-software-management/libhif/comments{/number}","issue_comment_url":"https://api.github.com/repos/rpm-software-management/libhif/issues/comments{/number}","contents_url":"https://api.github.com/repos/rpm-software-management/libhif/contents/{+path}","compare_url":"https://api.github.com/repos/rpm-software-management/libhif/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rpm-software-management/libhif/merges","archive_url":"https://api.github.com/repos/rpm-software-management/libhif/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rpm-software-management/libhif/downloads","issues_url":"https://api.github.com/repos/rpm-software-management/libhif/issues{/number}","pulls_url":"https://api.github.com/repos/rpm-software-management/libhif/pulls{/number}","milestones_url":"https://api.github.com/repos/rpm-software-management/libhif/milestones{/number}","notifications_url":"https://api.github.com/repos/rpm-software-management/libhif/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rpm-software-management/libhif/labels{/name}","releases_url":"https://api.github.com/repos/rpm-software-management/libhif/releases{/id}","created_at":"2014-03-28T09:00:31Z","updated_at":"2015-08-31T14:41:07Z","pushed_at":"2015-09-30T21:07:55Z","git_url":"git://github.com/rpm-software-management/libhif.git","ssh_url":"git@github.com:rpm-software-management/libhif.git","clone_url":"https://github.com/rpm-software-management/libhif.git","svn_url":"https://github.com/rpm-software-management/libhif","homepage":null,"size":1237,"stargazers_count":3,"watchers_count":3,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":11,"forks":12,"open_issues":11,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rpm-software-management/libhif/pulls/62"},"html":{"href":"https://github.com/rpm-software-management/libhif/pull/62"},"issue":{"href":"https://api.github.com/repos/rpm-software-management/libhif/issues/62"},"comments":{"href":"https://api.github.com/repos/rpm-software-management/libhif/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/rpm-software-management/libhif/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/rpm-software-management/libhif/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rpm-software-management/libhif/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/rpm-software-management/libhif/statuses/41652f6cb7fdce9d1dcbb7a5bd5be91963793d91"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":120,"deletions":58,"changed_files":3}}