generated from smedev/Template-for-SMEServer-Core-Perl
* Sun Apr 03 2022 Peter Ajamian <pj@ghettoforge.org> - 3.4.3-168.2
- python-backports-lzma compatibility. - Fix dependancies
This commit is contained in:
33
BZ-1195745-failed-repo-message.patch
Normal file
33
BZ-1195745-failed-repo-message.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
commit d83aab7e518f77a0de1e938fc4a7e7c4c55f1a17
|
||||
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
|
||||
Date: Fri May 6 14:47:55 2016 +0200
|
||||
|
||||
Recommend --disablerepo and subscription-manager when a repo fails. BZ 1195745
|
||||
|
||||
diff --git a/yummain.py b/yummain.py
|
||||
index 32680a8..b1666a2 100755
|
||||
--- a/yummain.py
|
||||
+++ b/yummain.py
|
||||
@@ -85,13 +85,18 @@ def main(args):
|
||||
distribution release than is supported by the repository (and the
|
||||
packages for the previous distribution release still work).
|
||||
|
||||
- 3. Disable the repository, so yum won't use it by default. Yum will then
|
||||
- just ignore the repository until you permanently enable it again or use
|
||||
- --enablerepo for temporary usage:
|
||||
+ 3. Run the command with the repository temporarily disabled
|
||||
+ yum --disablerepo=%(repoid)s ...
|
||||
+
|
||||
+ 4. Disable the repository permanently, so yum won't use it by default. Yum
|
||||
+ will then just ignore the repository until you permanently enable it
|
||||
+ again or use --enablerepo for temporary usage:
|
||||
|
||||
yum-config-manager --disable %(repoid)s
|
||||
+ or
|
||||
+ subscription-manager repos --disable=%(repoid)s
|
||||
|
||||
- 4. Configure the failing repository to be skipped, if it is unavailable.
|
||||
+ 5. Configure the failing repository to be skipped, if it is unavailable.
|
||||
Note that yum will try to contact the repo. when it runs most commands,
|
||||
so will have to try and fail each time (and thus. yum will be be much
|
||||
slower). If it is a very temporary problem though, this is often a nice
|
Reference in New Issue
Block a user