yifengyou / rpms / yum

Forked from rpms/yum 4 years ago
Clone

Blame SOURCES/BZ-1195745-failed-repo-message.patch

5e9bef
commit d83aab7e518f77a0de1e938fc4a7e7c4c55f1a17
5e9bef
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
5e9bef
Date:   Fri May 6 14:47:55 2016 +0200
5e9bef
5e9bef
    Recommend --disablerepo and subscription-manager when a repo fails. BZ 1195745
5e9bef
5e9bef
diff --git a/yummain.py b/yummain.py
5e9bef
index 32680a8..b1666a2 100755
5e9bef
--- a/yummain.py
5e9bef
+++ b/yummain.py
5e9bef
@@ -85,13 +85,18 @@ def main(args):
5e9bef
         distribution release than is supported by the repository (and the
5e9bef
         packages for the previous distribution release still work).
5e9bef
 
5e9bef
-     3. Disable the repository, so yum won't use it by default. Yum will then
5e9bef
-        just ignore the repository until you permanently enable it again or use
5e9bef
-        --enablerepo for temporary usage:
5e9bef
+     3. Run the command with the repository temporarily disabled
5e9bef
+            yum --disablerepo=%(repoid)s ...
5e9bef
+
5e9bef
+     4. Disable the repository permanently, so yum won't use it by default. Yum
5e9bef
+        will then just ignore the repository until you permanently enable it
5e9bef
+        again or use --enablerepo for temporary usage:
5e9bef
 
5e9bef
             yum-config-manager --disable %(repoid)s
5e9bef
+        or
5e9bef
+            subscription-manager repos --disable=%(repoid)s
5e9bef
 
5e9bef
-     4. Configure the failing repository to be skipped, if it is unavailable.
5e9bef
+     5. Configure the failing repository to be skipped, if it is unavailable.
5e9bef
         Note that yum will try to contact the repo. when it runs most commands,
5e9bef
         so will have to try and fail each time (and thus. yum will be be much
5e9bef
         slower). If it is a very temporary problem though, this is often a nice