Blame SOURCES/BZ-1321651-repoinfo-add-metadata-expire-filter.patch

d2a170
commit 36a49290d73951bd92dd0b2db877d11db2a3276f
d2a170
Author: Michal Domonkos <mdomonko@redhat.com>
d2a170
Date:   Mon Apr 25 17:09:25 2016 +0200
d2a170
d2a170
    Add metadata_expire_filter to repoinfo output. BZ 1321651
d2a170
d2a170
diff --git a/yumcommands.py b/yumcommands.py
d2a170
index 7118f3b..618ae5c 100644
d2a170
--- a/yumcommands.py
d2a170
+++ b/yumcommands.py
d2a170
@@ -2325,7 +2325,10 @@ class RepoListCommand(YumCommand):
d2a170
                     num = _num2ui_num(repo.metadata_expire)
d2a170
                     num = _("%s second(s) (last: %s)") % (num, last)
d2a170
 
d2a170
-                out += [base.fmtKeyValFill(_("Repo-expire  : "), num)]
d2a170
+                out += [base.fmtKeyValFill(_("Repo-expire  : "), num),
d2a170
+                        base.fmtKeyValFill(_("  Filter     : "),
d2a170
+                            repo.metadata_expire_filter),
d2a170
+                        ]
d2a170
 
d2a170
                 if repo.exclude:
d2a170
                     out += [base.fmtKeyValFill(_("Repo-exclude : "),
d2a170
d2a170
commit e2db41de3d19cbd8c94a1c3824b541dbd4b706bb
d2a170
Author: Michal Domonkos <mdomonko@redhat.com>
d2a170
Date:   Mon Apr 25 15:12:23 2016 +0200
d2a170
d2a170
    docs: add a freshness note for metadata_expire_filter
d2a170
d2a170
diff --git a/docs/yum.conf.5 b/docs/yum.conf.5
d2a170
index f823c6f..efc6765 100644
d2a170
--- a/docs/yum.conf.5
d2a170
+++ b/docs/yum.conf.5
d2a170
@@ -646,7 +646,12 @@ Eg. yum list yum
d2a170
 `read-only:future' - Commands that are likely to result in running other
d2a170
 commands which will require the latest metadata. Eg. yum check-update
d2a170
 
d2a170
-Note that this option does not override "yum clean expire-cache".
d2a170
+Note that this option requires that all the enabled repositories be roughly the
d2a170
+same freshness (meaning the cache age difference from one another is at most 5
d2a170
+days).  Failing that, metadata_expire will always be obeyed, just like with
d2a170
+`never'.
d2a170
+
d2a170
+Also note that this option does not override "yum clean expire-cache".
d2a170
 
d2a170
 .IP
d2a170
 \fBmirrorlist_expire \fR