add option to disable rebuilds
This commit is contained in:
parent
fc6f29c0e1
commit
62ff301c3c
@ -45,6 +45,11 @@ do_depclean=yes
|
|||||||
# do eix-sync on Gentoo
|
# do eix-sync on Gentoo
|
||||||
do_reposync=yes
|
do_reposync=yes
|
||||||
|
|
||||||
|
# do live-rebuild, go-rebuild, rust-rebuild, perl-cleaner etc. on Gentoo
|
||||||
|
# set to no if using binary packages that are bumped when needed.
|
||||||
|
# Leave as yes on package builders and if not using binary packages.
|
||||||
|
do_rebuilds=yes
|
||||||
|
|
||||||
# to only write to stderr when something unexpected happens or manual action is required
|
# to only write to stderr when something unexpected happens or manual action is required
|
||||||
# set stderr_loglevel to warning
|
# set stderr_loglevel to warning
|
||||||
stderr_loglevel=debug
|
stderr_loglevel=debug
|
||||||
|
@ -261,6 +261,9 @@ def pkg_upgrade():
|
|||||||
if line.startswith(' * '):
|
if line.startswith(' * '):
|
||||||
log.warning(line)
|
log.warning(line)
|
||||||
|
|
||||||
|
## rebuild as needed
|
||||||
|
do_rebuild = conf.getboolean('default', 'do_rebuilds', fallback=True)
|
||||||
|
if do_rebuilds:
|
||||||
# from here on we shouldn't need to rebuild the upgraded packages again
|
# from here on we shouldn't need to rebuild the upgraded packages again
|
||||||
exclude_list = ' --exclude '.join(rebuild_packages.keys()).split()
|
exclude_list = ' --exclude '.join(rebuild_packages.keys()).split()
|
||||||
|
|
||||||
@ -367,7 +370,7 @@ def pkg_upgrade():
|
|||||||
log.warning(line)
|
log.warning(line)
|
||||||
|
|
||||||
|
|
||||||
# Depclean
|
## Depclean
|
||||||
if conf.getboolean('default', 'do_depclean', fallback=False):
|
if conf.getboolean('default', 'do_depclean', fallback=False):
|
||||||
cmd = [ EMERGE_PATH, '--color', 'n', '-q', '--depclean' ]
|
cmd = [ EMERGE_PATH, '--color', 'n', '-q', '--depclean' ]
|
||||||
ret, out, err = sau.helpers.exec_cmd(cmd, timeout=3600)
|
ret, out, err = sau.helpers.exec_cmd(cmd, timeout=3600)
|
||||||
@ -385,8 +388,8 @@ def pkg_upgrade():
|
|||||||
log.warning(line)
|
log.warning(line)
|
||||||
|
|
||||||
|
|
||||||
# Preserved rebuild
|
## Preserved rebuild
|
||||||
cmd = [ EMERGE_PATH, '--color', 'n', '-q', '@preserved-rebuild' ]
|
cmd = [ EMERGE_PATH, '--color', 'n', '--usepkg-exclude', '*/*', '-q', '@preserved-rebuild' ]
|
||||||
ret, out, err = sau.helpers.exec_cmd(cmd, timeout=72000)
|
ret, out, err = sau.helpers.exec_cmd(cmd, timeout=72000)
|
||||||
|
|
||||||
if ret != 0 or err:
|
if ret != 0 or err:
|
||||||
|
Loading…
Reference in New Issue
Block a user