{"action":"created","comment":{"url":"https://api.github.com/repos/yast/yast-installation/pulls/comments/55838941","id":55838941,"diff_hunk":"@@ -0,0 +1,223 @@\n+# encoding: utf-8\n+\n+# ------------------------------------------------------------------------------\n+# Copyright (c) 2016 SUSE LLC\n+#\n+# This program is free software; you can redistribute it and/or modify it under\n+# the terms of version 2 of the GNU General Public License as published by the\n+# Free Software Foundation.\n+#\n+# This program is distributed in the hope that it will be useful, but WITHOUT\n+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\n+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n+#\n+# ------------------------------------------------------------------------------\n+\n+require \"yast\"\n+require \"tempfile\"\n+require \"pathname\"\n+require \"transfer/file_from_url\"\n+\n+module Installation\n+  # Represents a driver update disk (DUD)\n+  #\n+  # The DUD will be fetched from a given URL.\n+  class DriverUpdate\n+    include Yast::I18n # missing in yast2-update\n+    include Yast::Transfer::FileFromUrl # get_file_from_url\n+\n+    class NotFound < StandardError; end\n+\n+    # Command to extract the content of the DUD\n+    EXTRACT_CMD = \"gzip -dc %<source>s | cpio --quiet --sparse -dimu --no-absolute-filenames\"","path":"src/lib/installation/driver_update.rb","position":32,"original_position":32,"commit_id":"f22527710969ff2802f8819c7084ce2d9cd6ae6d","original_commit_id":"f22527710969ff2802f8819c7084ce2d9cd6ae6d","user":{"login":"imobach","id":15836,"avatar_url":"https://avatars.githubusercontent.com/u/15836?v=3","gravatar_id":"","url":"https://api.github.com/users/imobach","html_url":"https://github.com/imobach","followers_url":"https://api.github.com/users/imobach/followers","following_url":"https://api.github.com/users/imobach/following{/other_user}","gists_url":"https://api.github.com/users/imobach/gists{/gist_id}","starred_url":"https://api.github.com/users/imobach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imobach/subscriptions","organizations_url":"https://api.github.com/users/imobach/orgs","repos_url":"https://api.github.com/users/imobach/repos","events_url":"https://api.github.com/users/imobach/events{/privacy}","received_events_url":"https://api.github.com/users/imobach/received_events","type":"User","site_admin":false},"body":"I didn't remember it :) I'll check it.","created_at":"2016-03-11T14:56:49Z","updated_at":"2016-03-11T14:56:49Z","html_url":"https://github.com/yast/yast-installation/pull/347#discussion_r55838941","pull_request_url":"https://api.github.com/repos/yast/yast-installation/pulls/347","_links":{"self":{"href":"https://api.github.com/repos/yast/yast-installation/pulls/comments/55838941"},"html":{"href":"https://github.com/yast/yast-installation/pull/347#discussion_r55838941"},"pull_request":{"href":"https://api.github.com/repos/yast/yast-installation/pulls/347"}}},"pull_request":{"url":"https://api.github.com/repos/yast/yast-installation/pulls/347","id":62548578,"html_url":"https://github.com/yast/yast-installation/pull/347","diff_url":"https://github.com/yast/yast-installation/pull/347.diff","patch_url":"https://github.com/yast/yast-installation/pull/347.patch","issue_url":"https://api.github.com/repos/yast/yast-installation/issues/347","number":347,"state":"open","locked":false,"title":"[WIP] Self update","user":{"login":"imobach","id":15836,"avatar_url":"https://avatars.githubusercontent.com/u/15836?v=3","gravatar_id":"","url":"https://api.github.com/users/imobach","html_url":"https://github.com/imobach","followers_url":"https://api.github.com/users/imobach/followers","following_url":"https://api.github.com/users/imobach/following{/other_user}","gists_url":"https://api.github.com/users/imobach/gists{/gist_id}","starred_url":"https://api.github.com/users/imobach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imobach/subscriptions","organizations_url":"https://api.github.com/users/imobach/orgs","repos_url":"https://api.github.com/users/imobach/repos","events_url":"https://api.github.com/users/imobach/events{/privacy}","received_events_url":"https://api.github.com/users/imobach/received_events","type":"User","site_admin":false},"body":"This PR is a work in progress, although is almost ready (some final testing is due).\r\n\r\n* Add a client to perform the installer update\r\n* Add classes UpdatesManager and DriverUpdate to handle the update process.","created_at":"2016-03-11T14:18:02Z","updated_at":"2016-03-11T14:56:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa4de3e0ccd305412f612765640593c58342523d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yast/yast-installation/pulls/347/commits","review_comments_url":"https://api.github.com/repos/yast/yast-installation/pulls/347/comments","review_comment_url":"https://api.github.com/repos/yast/yast-installation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yast/yast-installation/issues/347/comments","statuses_url":"https://api.github.com/repos/yast/yast-installation/statuses/f22527710969ff2802f8819c7084ce2d9cd6ae6d","head":{"label":"imobach:self-update","ref":"self-update","sha":"f22527710969ff2802f8819c7084ce2d9cd6ae6d","user":{"login":"imobach","id":15836,"avatar_url":"https://avatars.githubusercontent.com/u/15836?v=3","gravatar_id":"","url":"https://api.github.com/users/imobach","html_url":"https://github.com/imobach","followers_url":"https://api.github.com/users/imobach/followers","following_url":"https://api.github.com/users/imobach/following{/other_user}","gists_url":"https://api.github.com/users/imobach/gists{/gist_id}","starred_url":"https://api.github.com/users/imobach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imobach/subscriptions","organizations_url":"https://api.github.com/users/imobach/orgs","repos_url":"https://api.github.com/users/imobach/repos","events_url":"https://api.github.com/users/imobach/events{/privacy}","received_events_url":"https://api.github.com/users/imobach/received_events","type":"User","site_admin":false},"repo":{"id":34524024,"name":"yast-installation","full_name":"imobach/yast-installation","owner":{"login":"imobach","id":15836,"avatar_url":"https://avatars.githubusercontent.com/u/15836?v=3","gravatar_id":"","url":"https://api.github.com/users/imobach","html_url":"https://github.com/imobach","followers_url":"https://api.github.com/users/imobach/followers","following_url":"https://api.github.com/users/imobach/following{/other_user}","gists_url":"https://api.github.com/users/imobach/gists{/gist_id}","starred_url":"https://api.github.com/users/imobach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imobach/subscriptions","organizations_url":"https://api.github.com/users/imobach/orgs","repos_url":"https://api.github.com/users/imobach/repos","events_url":"https://api.github.com/users/imobach/events{/privacy}","received_events_url":"https://api.github.com/users/imobach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/imobach/yast-installation","description":"YaST module installation","fork":true,"url":"https://api.github.com/repos/imobach/yast-installation","forks_url":"https://api.github.com/repos/imobach/yast-installation/forks","keys_url":"https://api.github.com/repos/imobach/yast-installation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/imobach/yast-installation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/imobach/yast-installation/teams","hooks_url":"https://api.github.com/repos/imobach/yast-installation/hooks","issue_events_url":"https://api.github.com/repos/imobach/yast-installation/issues/events{/number}","events_url":"https://api.github.com/repos/imobach/yast-installation/events","assignees_url":"https://api.github.com/repos/imobach/yast-installation/assignees{/user}","branches_url":"https://api.github.com/repos/imobach/yast-installation/branches{/branch}","tags_url":"https://api.github.com/repos/imobach/yast-installation/tags","blobs_url":"https://api.github.com/repos/imobach/yast-installation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/imobach/yast-installation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/imobach/yast-installation/git/refs{/sha}","trees_url":"https://api.github.com/repos/imobach/yast-installation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/imobach/yast-installation/statuses/{sha}","languages_url":"https://api.github.com/repos/imobach/yast-installation/languages","stargazers_url":"https://api.github.com/repos/imobach/yast-installation/stargazers","contributors_url":"https://api.github.com/repos/imobach/yast-installation/contributors","subscribers_url":"https://api.github.com/repos/imobach/yast-installation/subscribers","subscription_url":"https://api.github.com/repos/imobach/yast-installation/subscription","commits_url":"https://api.github.com/repos/imobach/yast-installation/commits{/sha}","git_commits_url":"https://api.github.com/repos/imobach/yast-installation/git/commits{/sha}","comments_url":"https://api.github.com/repos/imobach/yast-installation/comments{/number}","issue_comment_url":"https://api.github.com/repos/imobach/yast-installation/issues/comments{/number}","contents_url":"https://api.github.com/repos/imobach/yast-installation/contents/{+path}","compare_url":"https://api.github.com/repos/imobach/yast-installation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/imobach/yast-installation/merges","archive_url":"https://api.github.com/repos/imobach/yast-installation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/imobach/yast-installation/downloads","issues_url":"https://api.github.com/repos/imobach/yast-installation/issues{/number}","pulls_url":"https://api.github.com/repos/imobach/yast-installation/pulls{/number}","milestones_url":"https://api.github.com/repos/imobach/yast-installation/milestones{/number}","notifications_url":"https://api.github.com/repos/imobach/yast-installation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/imobach/yast-installation/labels{/name}","releases_url":"https://api.github.com/repos/imobach/yast-installation/releases{/id}","deployments_url":"https://api.github.com/repos/imobach/yast-installation/deployments","created_at":"2015-04-24T14:43:39Z","updated_at":"2015-04-24T14:43:40Z","pushed_at":"2016-03-11T13:33:43Z","git_url":"git://github.com/imobach/yast-installation.git","ssh_url":"git@github.com:imobach/yast-installation.git","clone_url":"https://github.com/imobach/yast-installation.git","svn_url":"https://github.com/imobach/yast-installation","homepage":"http://en.opensuse.org/Portal:YaST","size":30603,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"yast:master","ref":"master","sha":"2514c4a0cbe4b166b926a3c454a00864315bdd31","user":{"login":"yast","id":909990,"avatar_url":"https://avatars.githubusercontent.com/u/909990?v=3","gravatar_id":"","url":"https://api.github.com/users/yast","html_url":"https://github.com/yast","followers_url":"https://api.github.com/users/yast/followers","following_url":"https://api.github.com/users/yast/following{/other_user}","gists_url":"https://api.github.com/users/yast/gists{/gist_id}","starred_url":"https://api.github.com/users/yast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yast/subscriptions","organizations_url":"https://api.github.com/users/yast/orgs","repos_url":"https://api.github.com/users/yast/repos","events_url":"https://api.github.com/users/yast/events{/privacy}","received_events_url":"https://api.github.com/users/yast/received_events","type":"Organization","site_admin":false},"repo":{"id":4368120,"name":"yast-installation","full_name":"yast/yast-installation","owner":{"login":"yast","id":909990,"avatar_url":"https://avatars.githubusercontent.com/u/909990?v=3","gravatar_id":"","url":"https://api.github.com/users/yast","html_url":"https://github.com/yast","followers_url":"https://api.github.com/users/yast/followers","following_url":"https://api.github.com/users/yast/following{/other_user}","gists_url":"https://api.github.com/users/yast/gists{/gist_id}","starred_url":"https://api.github.com/users/yast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yast/subscriptions","organizations_url":"https://api.github.com/users/yast/orgs","repos_url":"https://api.github.com/users/yast/repos","events_url":"https://api.github.com/users/yast/events{/privacy}","received_events_url":"https://api.github.com/users/yast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yast/yast-installation","description":"YaST module installation","fork":false,"url":"https://api.github.com/repos/yast/yast-installation","forks_url":"https://api.github.com/repos/yast/yast-installation/forks","keys_url":"https://api.github.com/repos/yast/yast-installation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yast/yast-installation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yast/yast-installation/teams","hooks_url":"https://api.github.com/repos/yast/yast-installation/hooks","issue_events_url":"https://api.github.com/repos/yast/yast-installation/issues/events{/number}","events_url":"https://api.github.com/repos/yast/yast-installation/events","assignees_url":"https://api.github.com/repos/yast/yast-installation/assignees{/user}","branches_url":"https://api.github.com/repos/yast/yast-installation/branches{/branch}","tags_url":"https://api.github.com/repos/yast/yast-installation/tags","blobs_url":"https://api.github.com/repos/yast/yast-installation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yast/yast-installation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yast/yast-installation/git/refs{/sha}","trees_url":"https://api.github.com/repos/yast/yast-installation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yast/yast-installation/statuses/{sha}","languages_url":"https://api.github.com/repos/yast/yast-installation/languages","stargazers_url":"https://api.github.com/repos/yast/yast-installation/stargazers","contributors_url":"https://api.github.com/repos/yast/yast-installation/contributors","subscribers_url":"https://api.github.com/repos/yast/yast-installation/subscribers","subscription_url":"https://api.github.com/repos/yast/yast-installation/subscription","commits_url":"https://api.github.com/repos/yast/yast-installation/commits{/sha}","git_commits_url":"https://api.github.com/repos/yast/yast-installation/git/commits{/sha}","comments_url":"https://api.github.com/repos/yast/yast-installation/comments{/number}","issue_comment_url":"https://api.github.com/repos/yast/yast-installation/issues/comments{/number}","contents_url":"https://api.github.com/repos/yast/yast-installation/contents/{+path}","compare_url":"https://api.github.com/repos/yast/yast-installation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yast/yast-installation/merges","archive_url":"https://api.github.com/repos/yast/yast-installation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yast/yast-installation/downloads","issues_url":"https://api.github.com/repos/yast/yast-installation/issues{/number}","pulls_url":"https://api.github.com/repos/yast/yast-installation/pulls{/number}","milestones_url":"https://api.github.com/repos/yast/yast-installation/milestones{/number}","notifications_url":"https://api.github.com/repos/yast/yast-installation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yast/yast-installation/labels{/name}","releases_url":"https://api.github.com/repos/yast/yast-installation/releases{/id}","deployments_url":"https://api.github.com/repos/yast/yast-installation/deployments","created_at":"2012-05-18T10:23:52Z","updated_at":"2016-01-11T15:30:41Z","pushed_at":"2016-03-11T14:46:01Z","git_url":"git://github.com/yast/yast-installation.git","ssh_url":"git@github.com:yast/yast-installation.git","clone_url":"https://github.com/yast/yast-installation.git","svn_url":"https://github.com/yast/yast-installation","homepage":"http://en.opensuse.org/Portal:YaST","size":33346,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":5,"forks":21,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yast/yast-installation/pulls/347"},"html":{"href":"https://github.com/yast/yast-installation/pull/347"},"issue":{"href":"https://api.github.com/repos/yast/yast-installation/issues/347"},"comments":{"href":"https://api.github.com/repos/yast/yast-installation/issues/347/comments"},"review_comments":{"href":"https://api.github.com/repos/yast/yast-installation/pulls/347/comments"},"review_comment":{"href":"https://api.github.com/repos/yast/yast-installation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yast/yast-installation/pulls/347/commits"},"statuses":{"href":"https://api.github.com/repos/yast/yast-installation/statuses/f22527710969ff2802f8819c7084ce2d9cd6ae6d"}}}}