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

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