From 3e3252ed48e7b9f458a4d5f2b06630b345180067 Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Sat, 20 Feb 2021 16:00:27 +0100 Subject: [PATCH] add support for do_reposync on gentoo --- config.cfg | 3 +++ sau/gentoo.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.cfg b/config.cfg index d9f93b0..3aa30f6 100644 --- a/config.cfg +++ b/config.cfg @@ -30,6 +30,9 @@ default_service_policy=ignore # do depclean on Gentoo do_depclean=yes +# do eix-sync on Gentoo +do_reposync=yes + # to only write to stderr when something unexpected happens or manual action is required # set stderr_loglevel to warning stderr_loglevel=debug diff --git a/sau/gentoo.py b/sau/gentoo.py index 276484d..e16160e 100644 --- a/sau/gentoo.py +++ b/sau/gentoo.py @@ -98,7 +98,8 @@ def pkg_upgrade(): log = logging.getLogger(sau.LOGNAME) conf = sau.config - _sync_portage() + if conf.getboolean('default', 'do_reposync', fallback=True): + _sync_portage() # [ebuild U ] media-plugins/alsa-plugins-1.1.8 [1.1.6] pretend_re = re.compile(r'^\[ebuild ([^\]]*)\] ([^ ]+)( \[[^\]]+\])?')