{"action":"created","comment":{"url":"https://api.github.com/repos/pulp/pulp_rpm/pulls/comments/72612652","id":72612652,"diff_hunk":"@@ -120,6 +121,27 @@ def package_headers(filename):\n     return headers\n \n \n+def package_headers_drpm(filename):\n+    \"\"\"\n+    Return delta package header.\n+\n+    :param filename: full path to the package to analyze\n+    :type  filename: str\n+\n+    :return: delta package header\n+      * \"nevr\" - nevr of the new package\n+      * \"seq\" - seq without old_nevr\n+      * \"old_nevr\" - nevr of the old package\n+    :rtype: dict\n+    \"\"\"\n+    try:\n+        return deltarpm.readDeltaRPM(filename)\n+    except SystemError:  # does silly exception reporting (print) => missing from tests\n+        msg = 'failed to load DRPM metadata on file %s error' % filename","path":"plugins/pulp_rpm/plugins/importers/yum/parse/rpm.py","position":28,"original_position":28,"commit_id":"b04943332f4feeba7a3f043782a7a3183943e42e","original_commit_id":"b04943332f4feeba7a3f043782a7a3183943e42e","user":{"login":"goosemania","id":16638409,"avatar_url":"https://avatars.githubusercontent.com/u/16638409?v=3","gravatar_id":"","url":"https://api.github.com/users/goosemania","html_url":"https://github.com/goosemania","followers_url":"https://api.github.com/users/goosemania/followers","following_url":"https://api.github.com/users/goosemania/following{/other_user}","gists_url":"https://api.github.com/users/goosemania/gists{/gist_id}","starred_url":"https://api.github.com/users/goosemania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goosemania/subscriptions","organizations_url":"https://api.github.com/users/goosemania/orgs","repos_url":"https://api.github.com/users/goosemania/repos","events_url":"https://api.github.com/users/goosemania/events{/privacy}","received_events_url":"https://api.github.com/users/goosemania/received_events","type":"User","site_admin":false},"body":"Please internationalize this and similar messages using `gettext`","created_at":"2016-07-28T12:33:03Z","updated_at":"2016-07-28T12:33:03Z","html_url":"https://github.com/pulp/pulp_rpm/pull/936#discussion_r72612652","pull_request_url":"https://api.github.com/repos/pulp/pulp_rpm/pulls/936","_links":{"self":{"href":"https://api.github.com/repos/pulp/pulp_rpm/pulls/comments/72612652"},"html":{"href":"https://github.com/pulp/pulp_rpm/pull/936#discussion_r72612652"},"pull_request":{"href":"https://api.github.com/repos/pulp/pulp_rpm/pulls/936"}}},"pull_request":{"url":"https://api.github.com/repos/pulp/pulp_rpm/pulls/936","id":77323978,"html_url":"https://github.com/pulp/pulp_rpm/pull/936","diff_url":"https://github.com/pulp/pulp_rpm/pull/936.diff","patch_url":"https://github.com/pulp/pulp_rpm/pull/936.patch","issue_url":"https://api.github.com/repos/pulp/pulp_rpm/issues/936","number":936,"state":"open","locked":false,"title":"1806 - As a user, I can use pulp-admin to upload drpms","user":{"login":"BrnoPCmaniak","id":1249759,"avatar_url":"https://avatars.githubusercontent.com/u/1249759?v=3","gravatar_id":"","url":"https://api.github.com/users/BrnoPCmaniak","html_url":"https://github.com/BrnoPCmaniak","followers_url":"https://api.github.com/users/BrnoPCmaniak/followers","following_url":"https://api.github.com/users/BrnoPCmaniak/following{/other_user}","gists_url":"https://api.github.com/users/BrnoPCmaniak/gists{/gist_id}","starred_url":"https://api.github.com/users/BrnoPCmaniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrnoPCmaniak/subscriptions","organizations_url":"https://api.github.com/users/BrnoPCmaniak/orgs","repos_url":"https://api.github.com/users/BrnoPCmaniak/repos","events_url":"https://api.github.com/users/BrnoPCmaniak/events{/privacy}","received_events_url":"https://api.github.com/users/BrnoPCmaniak/received_events","type":"User","site_admin":false},"body":"closes #1806\r\nhttps://pulp.plan.io/issues/1806\r\n\r\nChanges:\r\n * Added pulp-admin command pulp-admin rpm repo uploads drpm\r\n * Added recipe for uploading RPMs, SRPMs and DRPMs\r\n * Added package_headers_drpm to plugins.importers.yum.parse\r\n * Added RPMOnlyDRPMsAreNotSupported Exception\r\n * Updated requiremets to include deltarpm, python-deltarpm and hawkey","created_at":"2016-07-13T16:53:53Z","updated_at":"2016-07-28T12:33:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"619afe082d18c0166b9e30cef6a7dac2944cf560","assignee":{"login":"goosemania","id":16638409,"avatar_url":"https://avatars.githubusercontent.com/u/16638409?v=3","gravatar_id":"","url":"https://api.github.com/users/goosemania","html_url":"https://github.com/goosemania","followers_url":"https://api.github.com/users/goosemania/followers","following_url":"https://api.github.com/users/goosemania/following{/other_user}","gists_url":"https://api.github.com/users/goosemania/gists{/gist_id}","starred_url":"https://api.github.com/users/goosemania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goosemania/subscriptions","organizations_url":"https://api.github.com/users/goosemania/orgs","repos_url":"https://api.github.com/users/goosemania/repos","events_url":"https://api.github.com/users/goosemania/events{/privacy}","received_events_url":"https://api.github.com/users/goosemania/received_events","type":"User","site_admin":false},"assignees":[{"login":"goosemania","id":16638409,"avatar_url":"https://avatars.githubusercontent.com/u/16638409?v=3","gravatar_id":"","url":"https://api.github.com/users/goosemania","html_url":"https://github.com/goosemania","followers_url":"https://api.github.com/users/goosemania/followers","following_url":"https://api.github.com/users/goosemania/following{/other_user}","gists_url":"https://api.github.com/users/goosemania/gists{/gist_id}","starred_url":"https://api.github.com/users/goosemania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goosemania/subscriptions","organizations_url":"https://api.github.com/users/goosemania/orgs","repos_url":"https://api.github.com/users/goosemania/repos","events_url":"https://api.github.com/users/goosemania/events{/privacy}","received_events_url":"https://api.github.com/users/goosemania/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pulp/pulp_rpm/pulls/936/commits","review_comments_url":"https://api.github.com/repos/pulp/pulp_rpm/pulls/936/comments","review_comment_url":"https://api.github.com/repos/pulp/pulp_rpm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pulp/pulp_rpm/issues/936/comments","statuses_url":"https://api.github.com/repos/pulp/pulp_rpm/statuses/b04943332f4feeba7a3f043782a7a3183943e42e","head":{"label":"BrnoPCmaniak:story-1806","ref":"story-1806","sha":"b04943332f4feeba7a3f043782a7a3183943e42e","user":{"login":"BrnoPCmaniak","id":1249759,"avatar_url":"https://avatars.githubusercontent.com/u/1249759?v=3","gravatar_id":"","url":"https://api.github.com/users/BrnoPCmaniak","html_url":"https://github.com/BrnoPCmaniak","followers_url":"https://api.github.com/users/BrnoPCmaniak/followers","following_url":"https://api.github.com/users/BrnoPCmaniak/following{/other_user}","gists_url":"https://api.github.com/users/BrnoPCmaniak/gists{/gist_id}","starred_url":"https://api.github.com/users/BrnoPCmaniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrnoPCmaniak/subscriptions","organizations_url":"https://api.github.com/users/BrnoPCmaniak/orgs","repos_url":"https://api.github.com/users/BrnoPCmaniak/repos","events_url":"https://api.github.com/users/BrnoPCmaniak/events{/privacy}","received_events_url":"https://api.github.com/users/BrnoPCmaniak/received_events","type":"User","site_admin":false},"repo":{"id":63060431,"name":"pulp_rpm","full_name":"BrnoPCmaniak/pulp_rpm","owner":{"login":"BrnoPCmaniak","id":1249759,"avatar_url":"https://avatars.githubusercontent.com/u/1249759?v=3","gravatar_id":"","url":"https://api.github.com/users/BrnoPCmaniak","html_url":"https://github.com/BrnoPCmaniak","followers_url":"https://api.github.com/users/BrnoPCmaniak/followers","following_url":"https://api.github.com/users/BrnoPCmaniak/following{/other_user}","gists_url":"https://api.github.com/users/BrnoPCmaniak/gists{/gist_id}","starred_url":"https://api.github.com/users/BrnoPCmaniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrnoPCmaniak/subscriptions","organizations_url":"https://api.github.com/users/BrnoPCmaniak/orgs","repos_url":"https://api.github.com/users/BrnoPCmaniak/repos","events_url":"https://api.github.com/users/BrnoPCmaniak/events{/privacy}","received_events_url":"https://api.github.com/users/BrnoPCmaniak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BrnoPCmaniak/pulp_rpm","description":"RPM support for Pulp Platform","fork":true,"url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm","forks_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/forks","keys_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/teams","hooks_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/hooks","issue_events_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/issues/events{/number}","events_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/events","assignees_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/assignees{/user}","branches_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/branches{/branch}","tags_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/tags","blobs_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/git/refs{/sha}","trees_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/statuses/{sha}","languages_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/languages","stargazers_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/stargazers","contributors_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/contributors","subscribers_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/subscribers","subscription_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/subscription","commits_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/commits{/sha}","git_commits_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/git/commits{/sha}","comments_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/comments{/number}","issue_comment_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/issues/comments{/number}","contents_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/contents/{+path}","compare_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/merges","archive_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/downloads","issues_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/issues{/number}","pulls_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/pulls{/number}","milestones_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/milestones{/number}","notifications_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/labels{/name}","releases_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/releases{/id}","deployments_url":"https://api.github.com/repos/BrnoPCmaniak/pulp_rpm/deployments","created_at":"2016-07-11T10:57:19Z","updated_at":"2016-07-11T10:57:21Z","pushed_at":"2016-07-25T18:09:42Z","git_url":"git://github.com/BrnoPCmaniak/pulp_rpm.git","ssh_url":"git@github.com:BrnoPCmaniak/pulp_rpm.git","clone_url":"https://github.com/BrnoPCmaniak/pulp_rpm.git","svn_url":"https://github.com/BrnoPCmaniak/pulp_rpm","homepage":null,"size":42728,"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":"pulp:master","ref":"master","sha":"2fed2c59455850323d2327ecab986256b9d5deaf","user":{"login":"pulp","id":2103606,"avatar_url":"https://avatars.githubusercontent.com/u/2103606?v=3","gravatar_id":"","url":"https://api.github.com/users/pulp","html_url":"https://github.com/pulp","followers_url":"https://api.github.com/users/pulp/followers","following_url":"https://api.github.com/users/pulp/following{/other_user}","gists_url":"https://api.github.com/users/pulp/gists{/gist_id}","starred_url":"https://api.github.com/users/pulp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulp/subscriptions","organizations_url":"https://api.github.com/users/pulp/orgs","repos_url":"https://api.github.com/users/pulp/repos","events_url":"https://api.github.com/users/pulp/events{/privacy}","received_events_url":"https://api.github.com/users/pulp/received_events","type":"Organization","site_admin":false},"repo":{"id":6106345,"name":"pulp_rpm","full_name":"pulp/pulp_rpm","owner":{"login":"pulp","id":2103606,"avatar_url":"https://avatars.githubusercontent.com/u/2103606?v=3","gravatar_id":"","url":"https://api.github.com/users/pulp","html_url":"https://github.com/pulp","followers_url":"https://api.github.com/users/pulp/followers","following_url":"https://api.github.com/users/pulp/following{/other_user}","gists_url":"https://api.github.com/users/pulp/gists{/gist_id}","starred_url":"https://api.github.com/users/pulp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulp/subscriptions","organizations_url":"https://api.github.com/users/pulp/orgs","repos_url":"https://api.github.com/users/pulp/repos","events_url":"https://api.github.com/users/pulp/events{/privacy}","received_events_url":"https://api.github.com/users/pulp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pulp/pulp_rpm","description":"RPM support for Pulp Platform","fork":false,"url":"https://api.github.com/repos/pulp/pulp_rpm","forks_url":"https://api.github.com/repos/pulp/pulp_rpm/forks","keys_url":"https://api.github.com/repos/pulp/pulp_rpm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulp/pulp_rpm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulp/pulp_rpm/teams","hooks_url":"https://api.github.com/repos/pulp/pulp_rpm/hooks","issue_events_url":"https://api.github.com/repos/pulp/pulp_rpm/issues/events{/number}","events_url":"https://api.github.com/repos/pulp/pulp_rpm/events","assignees_url":"https://api.github.com/repos/pulp/pulp_rpm/assignees{/user}","branches_url":"https://api.github.com/repos/pulp/pulp_rpm/branches{/branch}","tags_url":"https://api.github.com/repos/pulp/pulp_rpm/tags","blobs_url":"https://api.github.com/repos/pulp/pulp_rpm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulp/pulp_rpm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulp/pulp_rpm/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulp/pulp_rpm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulp/pulp_rpm/statuses/{sha}","languages_url":"https://api.github.com/repos/pulp/pulp_rpm/languages","stargazers_url":"https://api.github.com/repos/pulp/pulp_rpm/stargazers","contributors_url":"https://api.github.com/repos/pulp/pulp_rpm/contributors","subscribers_url":"https://api.github.com/repos/pulp/pulp_rpm/subscribers","subscription_url":"https://api.github.com/repos/pulp/pulp_rpm/subscription","commits_url":"https://api.github.com/repos/pulp/pulp_rpm/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulp/pulp_rpm/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulp/pulp_rpm/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulp/pulp_rpm/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulp/pulp_rpm/contents/{+path}","compare_url":"https://api.github.com/repos/pulp/pulp_rpm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulp/pulp_rpm/merges","archive_url":"https://api.github.com/repos/pulp/pulp_rpm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulp/pulp_rpm/downloads","issues_url":"https://api.github.com/repos/pulp/pulp_rpm/issues{/number}","pulls_url":"https://api.github.com/repos/pulp/pulp_rpm/pulls{/number}","milestones_url":"https://api.github.com/repos/pulp/pulp_rpm/milestones{/number}","notifications_url":"https://api.github.com/repos/pulp/pulp_rpm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulp/pulp_rpm/labels{/name}","releases_url":"https://api.github.com/repos/pulp/pulp_rpm/releases{/id}","deployments_url":"https://api.github.com/repos/pulp/pulp_rpm/deployments","created_at":"2012-10-06T20:06:16Z","updated_at":"2016-05-16T08:20:21Z","pushed_at":"2016-07-28T08:59:33Z","git_url":"git://github.com/pulp/pulp_rpm.git","ssh_url":"git@github.com:pulp/pulp_rpm.git","clone_url":"https://github.com/pulp/pulp_rpm.git","svn_url":"https://github.com/pulp/pulp_rpm","homepage":null,"size":43099,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":8,"forks":57,"open_issues":8,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pulp/pulp_rpm/pulls/936"},"html":{"href":"https://github.com/pulp/pulp_rpm/pull/936"},"issue":{"href":"https://api.github.com/repos/pulp/pulp_rpm/issues/936"},"comments":{"href":"https://api.github.com/repos/pulp/pulp_rpm/issues/936/comments"},"review_comments":{"href":"https://api.github.com/repos/pulp/pulp_rpm/pulls/936/comments"},"review_comment":{"href":"https://api.github.com/repos/pulp/pulp_rpm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pulp/pulp_rpm/pulls/936/commits"},"statuses":{"href":"https://api.github.com/repos/pulp/pulp_rpm/statuses/b04943332f4feeba7a3f043782a7a3183943e42e"}}}}
{"actor":{"display_login":"goosemania"}}