{"action":"created","issue":{"url":"https://api.github.com/repos/openSUSE/zypper/issues/82","labels_url":"https://api.github.com/repos/openSUSE/zypper/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/openSUSE/zypper/issues/82/comments","events_url":"https://api.github.com/repos/openSUSE/zypper/issues/82/events","html_url":"https://github.com/openSUSE/zypper/pull/82","id":114734732,"number":82,"title":"Suggest setting a non-default repo priority.","user":{"login":"boombatower","id":209374,"avatar_url":"https://avatars.githubusercontent.com/u/209374?v=3","gravatar_id":"","url":"https://api.github.com/users/boombatower","html_url":"https://github.com/boombatower","followers_url":"https://api.github.com/users/boombatower/followers","following_url":"https://api.github.com/users/boombatower/following{/other_user}","gists_url":"https://api.github.com/users/boombatower/gists{/gist_id}","starred_url":"https://api.github.com/users/boombatower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boombatower/subscriptions","organizations_url":"https://api.github.com/users/boombatower/orgs","repos_url":"https://api.github.com/users/boombatower/repos","events_url":"https://api.github.com/users/boombatower/events{/privacy}","received_events_url":"https://api.github.com/users/boombatower/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-03T03:16:13Z","updated_at":"2015-11-03T10:26:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openSUSE/zypper/pulls/82","html_url":"https://github.com/openSUSE/zypper/pull/82","diff_url":"https://github.com/openSUSE/zypper/pull/82.diff","patch_url":"https://github.com/openSUSE/zypper/pull/82.patch"},"body":"Encourage discovery of repository priorities which are important for maintaining\r\na stable system in general and especially when using Tumbleweed as many users\r\ndup regularly. The messages do not interfere with normal behavior, but instead\r\nfocus on discovery rather than annoying prompts.\r\n\r\nMessages are displayed:\r\n\r\n- after `zypper addrepo` when using default priority\r\n- before `zypper dup` with all default priorities\r\n\r\nThis is similar to the various helpful suggestions `git` makes. For example:\r\n\r\n```\r\n$ git status\r\nOn branch master\r\nChanges to be committed:\r\n  (use \"git reset HEAD <file>...\" to unstage)\r\n\r\n        modified:   README.txt\r\n\r\nChanges not staged for commit:\r\n  (use \"git add <file>...\" to update what will be committed)\r\n  (use \"git checkout -- <file>...\" to discard changes in working directory)\r\n\r\n        modified:   benchmarks.rb\r\n```\r\n\r\nI tried to keep the wording as condensed as possible since these are just tips and the man pages should be consulted for more detail. From the man page:\r\n\r\n```\r\n           -p, --priority positive-integer\r\n               Set priority of the repository. Priority of 1 is the highest, the higher the number the lower the priority. Default\r\n               priority is 99. Packages from repositories with higher priority will be preferred even in case there is a higher\r\n               installable version available in the repository with a lower priority.\r\n```\r\n\r\nWhich seems sufficient. If desired I can followup by adding some example situations to the man pages to make it clearer."},"comment":{"url":"https://api.github.com/repos/openSUSE/zypper/issues/comments/153309300","html_url":"https://github.com/openSUSE/zypper/pull/82#issuecomment-153309300","issue_url":"https://api.github.com/repos/openSUSE/zypper/issues/82","id":153309300,"user":{"login":"mlandres","id":941526,"avatar_url":"https://avatars.githubusercontent.com/u/941526?v=3","gravatar_id":"","url":"https://api.github.com/users/mlandres","html_url":"https://github.com/mlandres","followers_url":"https://api.github.com/users/mlandres/followers","following_url":"https://api.github.com/users/mlandres/following{/other_user}","gists_url":"https://api.github.com/users/mlandres/gists{/gist_id}","starred_url":"https://api.github.com/users/mlandres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlandres/subscriptions","organizations_url":"https://api.github.com/users/mlandres/orgs","repos_url":"https://api.github.com/users/mlandres/repos","events_url":"https://api.github.com/users/mlandres/events{/privacy}","received_events_url":"https://api.github.com/users/mlandres/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T10:26:54Z","updated_at":"2015-11-03T10:26:54Z","body":"Reluctant - actually we do not encourage using priorities; vendor protection is usually easier to handle and gives better results.\r\n\r\nSince `zypper-1.12.13` even Tumbleweed users, who frequently `dup`, can enable 'vendor protection'. Darix [blogged](https://discourse.nordisch.org/t/living-on-tumbleweed/379) about it."}}