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 ([^\]]*)\] ([^ ]+)( \[[^\]]+\])?')