{"action":"created","comment":{"url":"https://api.github.com/repos/jsilhan/richdeps-docker/pulls/comments/45384308","id":45384308,"diff_hunk":"@@ -0,0 +1,96 @@\n+#!/usr/bin/python -tt\n+\n+from rpmfluff import SimpleRpmBuild\n+from rpmfluff import YumRepoBuild\n+import os\n+import shutil\n+\n+work_file = os.path.realpath(__file__)\n+work_dir = os.path.dirname(work_file)\n+file_base_mane = work_file.rsplit('/', 1)[1].rsplit('.', 1)[0]\n+repo_dir = os.path.join(work_dir, file_base_mane)\n+temp_dir = os.path.join(repo_dir, 'temp')\n+\n+if not os.path.exists(repo_dir):\n+    os.makedirs(repo_dir)\n+\n+if not os.path.exists(temp_dir):\n+    os.makedirs(temp_dir)\n+\n+\n+os.chdir(temp_dir)\n+\n+pkgs = []\n+rpm = SimpleRpmBuild('TestA', '1.0.0', '1', ['noarch'])\n+rpm.add_requires('TestB')\n+pkgs.append(rpm)\n+# Used for install remove tests if requirement TestB is handled properly.\n+\n+rpm = SimpleRpmBuild('TestB', '1.0.0', '1', ['noarch'])\n+pkgs.append(rpm)\n+# Requirement of TestA\n+\n+rpm = SimpleRpmBuild('TestC', '1.0.0', '1', ['noarch'])\n+pkgs.append(rpm)\n+# Used for install remove tests as a negative control - should not be installed if you install TestA.\n+\n+rpm = SimpleRpmBuild('TestD', '1.0.0', '1', ['noarch'])\n+rpm.add_requires('TestE = 1.0.0-1')\n+pkgs.append(rpm)\n+# Used for install remove tests if requirement with = version is handled properly.\n+\n+rpm = SimpleRpmBuild('TestE', '1.0.0', '1', ['noarch'])\n+pkgs.append(rpm)\n+# Requirement of TestD\n+\n+rpm = SimpleRpmBuild('TestF', '1.0.0', '1', ['noarch'])\n+rpm.add_requires('TestG >= 1.0.0-1, TestH = 1.0.0-1')\n+pkgs.append(rpm)\n+# Used for install remove tests if requirement with >= version and multiple requirements are handled properly.\n+\n+rpm = SimpleRpmBuild('TestG', '1.0.0', '1', ['noarch'])\n+pkgs.append(rpm)\n+# Requirement of TestF\n+\n+rpm = SimpleRpmBuild('TestH', '1.0.0', '1', ['noarch'])\n+pkgs.append(rpm)\n+# Requirement of TestF\n+\n+rpm = SimpleRpmBuild('TestI', '1.0.0', '1', ['noarch'])\n+rpm.add_requires('TestJ >= 1.0.0-2')\n+pkgs.append(rpm)\n+# Used for install test. This package cannot ge installed due to requirement.\n+\n+rpm = SimpleRpmBuild('TestJ', '1.0.0', '1', ['noarch'])\n+pkgs.append(rpm)\n+# Requirement of TestI with unsufficient version\n+\n+rpm = SimpleRpmBuild('TestK', '1.0.0', '1', ['noarch'])\n+rpm.add_requires('TestM')\n+pkgs.append(rpm)\n+# Used for remove tests. Multiple packages require TestM therefore TestM cannot be removed if package is required by\n+# other package.\n+\n+rpm = SimpleRpmBuild('TestL', '1.0.0', '1', ['noarch'])\n+rpm.add_requires('TestM')\n+pkgs.append(rpm)\n+# Used for remove tests. Multiple packages require TestM therefore TestM cannot be removed if package is required by\n+# other package.\n+\n+rpm = SimpleRpmBuild('TestM', '1.0.0', '1', ['noarch'])\n+pkgs.append(rpm)\n+# Requirement of TestK and TestL.\n+\n+rpm = SimpleRpmBuild('TestN', '1.0.0', '1', ['noarch'])\n+pkgs.append(rpm)\n+# Used in upgrade tests\n+\n+repo = YumRepoBuild(pkgs)\n+\n+repo.repoDir = repo_dir\n+\n+repo.make(\"noarch\")\n+\n+shutil.rmtree(temp_dir)\n+\n+print(\"DNF repo is located at %s\" % repo.repoDir)","path":"repo_create/test-1.py","position":96,"original_position":96,"commit_id":"aed8334590762230f61e70a1d294556e3e8b7571","original_commit_id":"aed8334590762230f61e70a1d294556e3e8b7571","user":{"login":"jsilhan","id":5243763,"avatar_url":"https://avatars.githubusercontent.com/u/5243763?v=3","gravatar_id":"","url":"https://api.github.com/users/jsilhan","html_url":"https://github.com/jsilhan","followers_url":"https://api.github.com/users/jsilhan/followers","following_url":"https://api.github.com/users/jsilhan/following{/other_user}","gists_url":"https://api.github.com/users/jsilhan/gists{/gist_id}","starred_url":"https://api.github.com/users/jsilhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsilhan/subscriptions","organizations_url":"https://api.github.com/users/jsilhan/orgs","repos_url":"https://api.github.com/users/jsilhan/repos","events_url":"https://api.github.com/users/jsilhan/events{/privacy}","received_events_url":"https://api.github.com/users/jsilhan/received_events","type":"User","site_admin":false},"body":"this is whole repo definition for all the tests?","created_at":"2015-11-19T19:01:56Z","updated_at":"2015-11-19T19:01:56Z","html_url":"https://github.com/jsilhan/richdeps-docker/pull/2#discussion_r45384308","pull_request_url":"https://api.github.com/repos/jsilhan/richdeps-docker/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/jsilhan/richdeps-docker/pulls/comments/45384308"},"html":{"href":"https://github.com/jsilhan/richdeps-docker/pull/2#discussion_r45384308"},"pull_request":{"href":"https://api.github.com/repos/jsilhan/richdeps-docker/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/jsilhan/richdeps-docker/pulls/2","id":50504387,"html_url":"https://github.com/jsilhan/richdeps-docker/pull/2","diff_url":"https://github.com/jsilhan/richdeps-docker/pull/2.diff","patch_url":"https://github.com/jsilhan/richdeps-docker/pull/2.patch","issue_url":"https://api.github.com/repos/jsilhan/richdeps-docker/issues/2","number":2,"state":"open","locked":false,"title":"Jmracek","user":{"login":"j-mracek","id":12737303,"avatar_url":"https://avatars.githubusercontent.com/u/12737303?v=3","gravatar_id":"","url":"https://api.github.com/users/j-mracek","html_url":"https://github.com/j-mracek","followers_url":"https://api.github.com/users/j-mracek/followers","following_url":"https://api.github.com/users/j-mracek/following{/other_user}","gists_url":"https://api.github.com/users/j-mracek/gists{/gist_id}","starred_url":"https://api.github.com/users/j-mracek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-mracek/subscriptions","organizations_url":"https://api.github.com/users/j-mracek/orgs","repos_url":"https://api.github.com/users/j-mracek/repos","events_url":"https://api.github.com/users/j-mracek/events{/privacy}","received_events_url":"https://api.github.com/users/j-mracek/received_events","type":"User","site_admin":false},"body":"Applied proposed changes from last review","created_at":"2015-11-12T12:21:38Z","updated_at":"2015-11-19T19:01:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8291a74f1f2a97c3ac7bc071017cedaa1726513d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jsilhan/richdeps-docker/pulls/2/commits","review_comments_url":"https://api.github.com/repos/jsilhan/richdeps-docker/pulls/2/comments","review_comment_url":"https://api.github.com/repos/jsilhan/richdeps-docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jsilhan/richdeps-docker/issues/2/comments","statuses_url":"https://api.github.com/repos/jsilhan/richdeps-docker/statuses/aed8334590762230f61e70a1d294556e3e8b7571","head":{"label":"j-mracek:jmracek","ref":"jmracek","sha":"aed8334590762230f61e70a1d294556e3e8b7571","user":{"login":"j-mracek","id":12737303,"avatar_url":"https://avatars.githubusercontent.com/u/12737303?v=3","gravatar_id":"","url":"https://api.github.com/users/j-mracek","html_url":"https://github.com/j-mracek","followers_url":"https://api.github.com/users/j-mracek/followers","following_url":"https://api.github.com/users/j-mracek/following{/other_user}","gists_url":"https://api.github.com/users/j-mracek/gists{/gist_id}","starred_url":"https://api.github.com/users/j-mracek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-mracek/subscriptions","organizations_url":"https://api.github.com/users/j-mracek/orgs","repos_url":"https://api.github.com/users/j-mracek/repos","events_url":"https://api.github.com/users/j-mracek/events{/privacy}","received_events_url":"https://api.github.com/users/j-mracek/received_events","type":"User","site_admin":false},"repo":{"id":46050627,"name":"richdeps-docker","full_name":"j-mracek/richdeps-docker","owner":{"login":"j-mracek","id":12737303,"avatar_url":"https://avatars.githubusercontent.com/u/12737303?v=3","gravatar_id":"","url":"https://api.github.com/users/j-mracek","html_url":"https://github.com/j-mracek","followers_url":"https://api.github.com/users/j-mracek/followers","following_url":"https://api.github.com/users/j-mracek/following{/other_user}","gists_url":"https://api.github.com/users/j-mracek/gists{/gist_id}","starred_url":"https://api.github.com/users/j-mracek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-mracek/subscriptions","organizations_url":"https://api.github.com/users/j-mracek/orgs","repos_url":"https://api.github.com/users/j-mracek/repos","events_url":"https://api.github.com/users/j-mracek/events{/privacy}","received_events_url":"https://api.github.com/users/j-mracek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/j-mracek/richdeps-docker","description":"Docker images for testing rich dependencies in DNF/RPM","fork":true,"url":"https://api.github.com/repos/j-mracek/richdeps-docker","forks_url":"https://api.github.com/repos/j-mracek/richdeps-docker/forks","keys_url":"https://api.github.com/repos/j-mracek/richdeps-docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/j-mracek/richdeps-docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/j-mracek/richdeps-docker/teams","hooks_url":"https://api.github.com/repos/j-mracek/richdeps-docker/hooks","issue_events_url":"https://api.github.com/repos/j-mracek/richdeps-docker/issues/events{/number}","events_url":"https://api.github.com/repos/j-mracek/richdeps-docker/events","assignees_url":"https://api.github.com/repos/j-mracek/richdeps-docker/assignees{/user}","branches_url":"https://api.github.com/repos/j-mracek/richdeps-docker/branches{/branch}","tags_url":"https://api.github.com/repos/j-mracek/richdeps-docker/tags","blobs_url":"https://api.github.com/repos/j-mracek/richdeps-docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/j-mracek/richdeps-docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/j-mracek/richdeps-docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/j-mracek/richdeps-docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/j-mracek/richdeps-docker/statuses/{sha}","languages_url":"https://api.github.com/repos/j-mracek/richdeps-docker/languages","stargazers_url":"https://api.github.com/repos/j-mracek/richdeps-docker/stargazers","contributors_url":"https://api.github.com/repos/j-mracek/richdeps-docker/contributors","subscribers_url":"https://api.github.com/repos/j-mracek/richdeps-docker/subscribers","subscription_url":"https://api.github.com/repos/j-mracek/richdeps-docker/subscription","commits_url":"https://api.github.com/repos/j-mracek/richdeps-docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/j-mracek/richdeps-docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/j-mracek/richdeps-docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/j-mracek/richdeps-docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/j-mracek/richdeps-docker/contents/{+path}","compare_url":"https://api.github.com/repos/j-mracek/richdeps-docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/j-mracek/richdeps-docker/merges","archive_url":"https://api.github.com/repos/j-mracek/richdeps-docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/j-mracek/richdeps-docker/downloads","issues_url":"https://api.github.com/repos/j-mracek/richdeps-docker/issues{/number}","pulls_url":"https://api.github.com/repos/j-mracek/richdeps-docker/pulls{/number}","milestones_url":"https://api.github.com/repos/j-mracek/richdeps-docker/milestones{/number}","notifications_url":"https://api.github.com/repos/j-mracek/richdeps-docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/j-mracek/richdeps-docker/labels{/name}","releases_url":"https://api.github.com/repos/j-mracek/richdeps-docker/releases{/id}","created_at":"2015-11-12T12:12:03Z","updated_at":"2015-11-12T12:12:03Z","pushed_at":"2015-11-19T13:22:10Z","git_url":"git://github.com/j-mracek/richdeps-docker.git","ssh_url":"git@github.com:j-mracek/richdeps-docker.git","clone_url":"https://github.com/j-mracek/richdeps-docker.git","svn_url":"https://github.com/j-mracek/richdeps-docker","homepage":null,"size":15806,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"jsilhan:jmracek","ref":"jmracek","sha":"97184bb4927228d4edbb55a354706f1eaec6c92e","user":{"login":"jsilhan","id":5243763,"avatar_url":"https://avatars.githubusercontent.com/u/5243763?v=3","gravatar_id":"","url":"https://api.github.com/users/jsilhan","html_url":"https://github.com/jsilhan","followers_url":"https://api.github.com/users/jsilhan/followers","following_url":"https://api.github.com/users/jsilhan/following{/other_user}","gists_url":"https://api.github.com/users/jsilhan/gists{/gist_id}","starred_url":"https://api.github.com/users/jsilhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsilhan/subscriptions","organizations_url":"https://api.github.com/users/jsilhan/orgs","repos_url":"https://api.github.com/users/jsilhan/repos","events_url":"https://api.github.com/users/jsilhan/events{/privacy}","received_events_url":"https://api.github.com/users/jsilhan/received_events","type":"User","site_admin":false},"repo":{"id":45253475,"name":"richdeps-docker","full_name":"jsilhan/richdeps-docker","owner":{"login":"jsilhan","id":5243763,"avatar_url":"https://avatars.githubusercontent.com/u/5243763?v=3","gravatar_id":"","url":"https://api.github.com/users/jsilhan","html_url":"https://github.com/jsilhan","followers_url":"https://api.github.com/users/jsilhan/followers","following_url":"https://api.github.com/users/jsilhan/following{/other_user}","gists_url":"https://api.github.com/users/jsilhan/gists{/gist_id}","starred_url":"https://api.github.com/users/jsilhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsilhan/subscriptions","organizations_url":"https://api.github.com/users/jsilhan/orgs","repos_url":"https://api.github.com/users/jsilhan/repos","events_url":"https://api.github.com/users/jsilhan/events{/privacy}","received_events_url":"https://api.github.com/users/jsilhan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jsilhan/richdeps-docker","description":"Docker images for testing rich dependencies in DNF/RPM","fork":true,"url":"https://api.github.com/repos/jsilhan/richdeps-docker","forks_url":"https://api.github.com/repos/jsilhan/richdeps-docker/forks","keys_url":"https://api.github.com/repos/jsilhan/richdeps-docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jsilhan/richdeps-docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jsilhan/richdeps-docker/teams","hooks_url":"https://api.github.com/repos/jsilhan/richdeps-docker/hooks","issue_events_url":"https://api.github.com/repos/jsilhan/richdeps-docker/issues/events{/number}","events_url":"https://api.github.com/repos/jsilhan/richdeps-docker/events","assignees_url":"https://api.github.com/repos/jsilhan/richdeps-docker/assignees{/user}","branches_url":"https://api.github.com/repos/jsilhan/richdeps-docker/branches{/branch}","tags_url":"https://api.github.com/repos/jsilhan/richdeps-docker/tags","blobs_url":"https://api.github.com/repos/jsilhan/richdeps-docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jsilhan/richdeps-docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jsilhan/richdeps-docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/jsilhan/richdeps-docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jsilhan/richdeps-docker/statuses/{sha}","languages_url":"https://api.github.com/repos/jsilhan/richdeps-docker/languages","stargazers_url":"https://api.github.com/repos/jsilhan/richdeps-docker/stargazers","contributors_url":"https://api.github.com/repos/jsilhan/richdeps-docker/contributors","subscribers_url":"https://api.github.com/repos/jsilhan/richdeps-docker/subscribers","subscription_url":"https://api.github.com/repos/jsilhan/richdeps-docker/subscription","commits_url":"https://api.github.com/repos/jsilhan/richdeps-docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/jsilhan/richdeps-docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/jsilhan/richdeps-docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/jsilhan/richdeps-docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/jsilhan/richdeps-docker/contents/{+path}","compare_url":"https://api.github.com/repos/jsilhan/richdeps-docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jsilhan/richdeps-docker/merges","archive_url":"https://api.github.com/repos/jsilhan/richdeps-docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jsilhan/richdeps-docker/downloads","issues_url":"https://api.github.com/repos/jsilhan/richdeps-docker/issues{/number}","pulls_url":"https://api.github.com/repos/jsilhan/richdeps-docker/pulls{/number}","milestones_url":"https://api.github.com/repos/jsilhan/richdeps-docker/milestones{/number}","notifications_url":"https://api.github.com/repos/jsilhan/richdeps-docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jsilhan/richdeps-docker/labels{/name}","releases_url":"https://api.github.com/repos/jsilhan/richdeps-docker/releases{/id}","created_at":"2015-10-30T13:47:08Z","updated_at":"2015-10-30T13:47:08Z","pushed_at":"2015-11-19T13:22:10Z","git_url":"git://github.com/jsilhan/richdeps-docker.git","ssh_url":"git@github.com:jsilhan/richdeps-docker.git","clone_url":"https://github.com/jsilhan/richdeps-docker.git","svn_url":"https://github.com/jsilhan/richdeps-docker","homepage":null,"size":15811,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jsilhan/richdeps-docker/pulls/2"},"html":{"href":"https://github.com/jsilhan/richdeps-docker/pull/2"},"issue":{"href":"https://api.github.com/repos/jsilhan/richdeps-docker/issues/2"},"comments":{"href":"https://api.github.com/repos/jsilhan/richdeps-docker/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/jsilhan/richdeps-docker/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/jsilhan/richdeps-docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jsilhan/richdeps-docker/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/jsilhan/richdeps-docker/statuses/aed8334590762230f61e70a1d294556e3e8b7571"}}}}