{"action":"created","issue":{"url":"https://api.github.com/repos/voidlinux/void-packages/issues/1956","labels_url":"https://api.github.com/repos/voidlinux/void-packages/issues/1956/labels{/name}","comments_url":"https://api.github.com/repos/voidlinux/void-packages/issues/1956/comments","events_url":"https://api.github.com/repos/voidlinux/void-packages/issues/1956/events","html_url":"https://github.com/voidlinux/void-packages/pull/1956","id":92907609,"number":1956,"title":"xbps-src: implement a by_sha256 hash cache","user":{"login":"pullmoll","id":10061347,"avatar_url":"https://avatars.githubusercontent.com/u/10061347?v=3","gravatar_id":"","url":"https://api.github.com/users/pullmoll","html_url":"https://github.com/pullmoll","followers_url":"https://api.github.com/users/pullmoll/followers","following_url":"https://api.github.com/users/pullmoll/following{/other_user}","gists_url":"https://api.github.com/users/pullmoll/gists{/gist_id}","starred_url":"https://api.github.com/users/pullmoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pullmoll/subscriptions","organizations_url":"https://api.github.com/users/pullmoll/orgs","repos_url":"https://api.github.com/users/pullmoll/repos","events_url":"https://api.github.com/users/pullmoll/events{/privacy}","received_events_url":"https://api.github.com/users/pullmoll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-07-03T16:40:26Z","updated_at":"2015-07-04T08:19:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/voidlinux/void-packages/pulls/1956","html_url":"https://github.com/voidlinux/void-packages/pull/1956","diff_url":"https://github.com/voidlinux/void-packages/pull/1956.diff","patch_url":"https://github.com/voidlinux/void-packages/pull/1956.patch"},"body":"Closes #1952\r\n\r\nAny successfully verified distfile is hard linked into `$XBPS_SRCDISTDIR/by_sha256/$cksum`. Before trying to download a distfile, an exsiting `$XBPS_SRCDISTDIR/by_sha256/$cksum` is hard linked to the `$distfile`.\r\n\r\nThere is a new xbps-src command `update-hash-cache` which will hard link your existing distfiles to their corresponding cache entries. You may run this once to initially setup the cache, while it isn't mandatory. It will merge distfiles from different directories with identical sha256sum and should thus reduce the space required on disk."},"comment":{"url":"https://api.github.com/repos/voidlinux/void-packages/issues/comments/118484201","html_url":"https://github.com/voidlinux/void-packages/pull/1956#issuecomment-118484201","issue_url":"https://api.github.com/repos/voidlinux/void-packages/issues/1956","id":118484201,"user":{"login":"pullmoll","id":10061347,"avatar_url":"https://avatars.githubusercontent.com/u/10061347?v=3","gravatar_id":"","url":"https://api.github.com/users/pullmoll","html_url":"https://github.com/pullmoll","followers_url":"https://api.github.com/users/pullmoll/followers","following_url":"https://api.github.com/users/pullmoll/following{/other_user}","gists_url":"https://api.github.com/users/pullmoll/gists{/gist_id}","starred_url":"https://api.github.com/users/pullmoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pullmoll/subscriptions","organizations_url":"https://api.github.com/users/pullmoll/orgs","repos_url":"https://api.github.com/users/pullmoll/repos","events_url":"https://api.github.com/users/pullmoll/events{/privacy}","received_events_url":"https://api.github.com/users/pullmoll/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T08:19:33Z","updated_at":"2015-07-04T08:19:33Z","body":"Well, you are right. This should work. It would not allow for different names, but that shouldn't occur anyway or only if distifle renaming with `>` is used."}}