{"action":"created","issue":{"url":"https://api.github.com/repos/NetBSDfr/pkgin/issues/69","repository_url":"https://api.github.com/repos/NetBSDfr/pkgin","labels_url":"https://api.github.com/repos/NetBSDfr/pkgin/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/NetBSDfr/pkgin/issues/69/comments","events_url":"https://api.github.com/repos/NetBSDfr/pkgin/issues/69/events","html_url":"https://github.com/NetBSDfr/pkgin/pull/69","id":137546608,"number":69,"title":"Add progress information during package download and install phases.","user":{"login":"nbyouri","id":2135560,"avatar_url":"https://avatars.githubusercontent.com/u/2135560?v=3","gravatar_id":"","url":"https://api.github.com/users/nbyouri","html_url":"https://github.com/nbyouri","followers_url":"https://api.github.com/users/nbyouri/followers","following_url":"https://api.github.com/users/nbyouri/following{/other_user}","gists_url":"https://api.github.com/users/nbyouri/gists{/gist_id}","starred_url":"https://api.github.com/users/nbyouri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbyouri/subscriptions","organizations_url":"https://api.github.com/users/nbyouri/orgs","repos_url":"https://api.github.com/users/nbyouri/repos","events_url":"https://api.github.com/users/nbyouri/events{/privacy}","received_events_url":"https://api.github.com/users/nbyouri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-01T11:25:51Z","updated_at":"2016-04-17T16:25:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/NetBSDfr/pkgin/pulls/69","html_url":"https://github.com/NetBSDfr/pkgin/pull/69","diff_url":"https://github.com/NetBSDfr/pkgin/pull/69.diff","patch_url":"https://github.com/NetBSDfr/pkgin/pull/69.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/NetBSDfr/pkgin/issues/comments/211052098","html_url":"https://github.com/NetBSDfr/pkgin/pull/69#issuecomment-211052098","issue_url":"https://api.github.com/repos/NetBSDfr/pkgin/issues/69","id":211052098,"user":{"login":"nbyouri","id":2135560,"avatar_url":"https://avatars.githubusercontent.com/u/2135560?v=3","gravatar_id":"","url":"https://api.github.com/users/nbyouri","html_url":"https://github.com/nbyouri","followers_url":"https://api.github.com/users/nbyouri/followers","following_url":"https://api.github.com/users/nbyouri/following{/other_user}","gists_url":"https://api.github.com/users/nbyouri/gists{/gist_id}","starred_url":"https://api.github.com/users/nbyouri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbyouri/subscriptions","organizations_url":"https://api.github.com/users/nbyouri/orgs","repos_url":"https://api.github.com/users/nbyouri/repos","events_url":"https://api.github.com/users/nbyouri/events{/privacy}","received_events_url":"https://api.github.com/users/nbyouri/received_events","type":"User","site_admin":false},"created_at":"2016-04-17T16:25:54Z","updated_at":"2016-04-17T16:25:54Z","body":"Hello,\r\nI changed the code a bit to use global variables like iMil asked. There's one during the download phase issue when packages are already in the cache it looks a bit bad:\r\n[1/3] gettext-m4-0.19.7.tgz ...\r\n[2/2] gettext-0.19.7.tgz ...\r\nTo fix this I'd have to iterate over the list of packages to download to first know the amount of packages to actually download, which sounds a bit inefficient..\r\nComments? I'll squash commits when ready."}}