Compare commits
No commits in common. "master" and "v1.4.2" have entirely different histories.
@ -119,9 +119,6 @@ def is_system_package(atom, eclasses):
|
||||
log.debug(f"{name} is a sys-boot package")
|
||||
return True
|
||||
|
||||
if eclasses is True:
|
||||
return True
|
||||
|
||||
# libc-packages should be considered system-packages as they generally
|
||||
# requires the system to be restarted. Not sure if there is a better way
|
||||
# then just checking for specific packages here, but as far as I know there
|
||||
@ -143,7 +140,7 @@ def is_system_package(atom, eclasses):
|
||||
def get_eclasses(atom):
|
||||
log = logging.getLogger(sau.LOGNAME)
|
||||
eclasses = []
|
||||
name=re.sub(r'^[<=>]*(.*?)(?:-\d+)?(?:::\w+)?$', r'\1', atom)
|
||||
name=re.sub(r'^[<=>]*(.*?)(?:-\d)?(?:::\w+)?$', r'\1', atom)
|
||||
test_re = re.compile(r'^\s*inherit\s+')
|
||||
cmd=[ EQUERY_PATH, 'w', name ]
|
||||
ret, out, err = sau.helpers.exec_cmd(cmd)
|
||||
@ -282,13 +279,13 @@ def pkg_upgrade():
|
||||
EMERGE_PATH,
|
||||
'--color', 'n',
|
||||
'-q',
|
||||
'--usepkg', 'n',
|
||||
'--usepkg-exclude', '*/*',
|
||||
'@golang-rebuild',
|
||||
'--exclude' ] + exclude_list
|
||||
elif go_packages:
|
||||
dependencies = []
|
||||
for package in go_packages:
|
||||
dependencies.extend(get_dependencies(package))
|
||||
dependencies.append(get_dependencies(package))
|
||||
dependencies = set(dependencies)
|
||||
upgraded = set(rebuild_packages.keys())
|
||||
not_upgraded = dependencies-upgraded
|
||||
@ -298,7 +295,7 @@ def pkg_upgrade():
|
||||
EMERGE_PATH,
|
||||
'--color', 'n',
|
||||
'-q',
|
||||
'--usepkg', 'n'] + not_upgraded
|
||||
'--usepkg-exclude', '*/*'] + not_upgraded
|
||||
if cmd:
|
||||
ret, out, err = sau.helpers.exec_cmd(cmd, timeout=72000)
|
||||
if ret != 0 or err:
|
||||
@ -315,13 +312,13 @@ def pkg_upgrade():
|
||||
log.warning(line)
|
||||
|
||||
# rebuild rust
|
||||
if any([x in rebuild_packages for x in ('dev-lang/rust', 'dev-lang/rust-bin')]):
|
||||
log.info("Running rust-rebuild due to update of rust")
|
||||
if 'dev-lang/rust' in rebuild_packages:
|
||||
log.info("Running rust-rebuild due to update of dev-lang/rust")
|
||||
cmd = [
|
||||
EMERGE_PATH,
|
||||
'--color', 'n',
|
||||
'-q',
|
||||
'--usepkg', 'n',
|
||||
'--usepkg-exclude', '*/*',
|
||||
'@rust-rebuild',
|
||||
'--exclude' ] + exclude_list
|
||||
ret, out, err = sau.helpers.exec_cmd(cmd, timeout=72000)
|
||||
@ -341,7 +338,7 @@ def pkg_upgrade():
|
||||
# run perl-cleaner
|
||||
if 'dev-lang/perl' in rebuild_packages:
|
||||
log.info("Running perl-cleaner due to perl upgrade")
|
||||
cmd = [ PCLEAN_PATH, '--all', '--', '-q', '--usepkg', 'n']
|
||||
cmd = [ PCLEAN_PATH, '--all', '--', '-q', '--usepkg-exclude', '*/*']
|
||||
ret, out, err = sau.helpers.exec_cmd(cmd, timeout=72000)
|
||||
if ret != 0 or err:
|
||||
log.error('perl-cleaner failed with code {}'.format(ret))
|
||||
@ -357,7 +354,7 @@ def pkg_upgrade():
|
||||
log.warning(line)
|
||||
|
||||
# rebuild live packages
|
||||
cmd = [ EMERGE_PATH, '--color', 'n', '-q', '--usepkg', 'n', '@live-rebuild' ]
|
||||
cmd = [ EMERGE_PATH, '--color', 'n', '-q', '--usepkg-exclude', '*/*', '@live-rebuild' ]
|
||||
ret, out, err = sau.helpers.exec_cmd(cmd, timeout=3600)
|
||||
if ret != 0 or err:
|
||||
log.error('live-rebuild returned {}'.format(ret))
|
||||
@ -392,7 +389,7 @@ def pkg_upgrade():
|
||||
|
||||
|
||||
## Preserved rebuild
|
||||
cmd = [ EMERGE_PATH, '--color', 'n', '--usepkg', 'n', '-q', '@preserved-rebuild' ]
|
||||
cmd = [ EMERGE_PATH, '--color', 'n', '--usepkg-exclude', '*/*', '-q', '@preserved-rebuild' ]
|
||||
ret, out, err = sau.helpers.exec_cmd(cmd, timeout=72000)
|
||||
|
||||
if ret != 0 or err:
|
||||
|
Loading…
Reference in New Issue
Block a user