mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 16:33:09 +01:00
pentoo-updater: profile migration
This commit is contained in:
parent
fccb44696c
commit
02d0e3fc15
1 changed files with 8 additions and 9 deletions
|
|
@ -146,11 +146,11 @@ check_profile () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# profile migration routine for amd64 17.0->17.1
|
# profile migration routine for amd64 17.0->17.1
|
||||||
#if [ "${ARCH}" = "amd64" ]; then
|
if [ "${ARCH}" = "amd64" ]; then
|
||||||
#if [ -L "/lib" ] || [ -e "/lib32" ] || [ -e "/usr/lib32" ]; then
|
if [ -L "/lib" ] || [ -e "/lib32" ] || [ -e "/usr/lib32" ]; then
|
||||||
# migrate_profile
|
migrate_profile
|
||||||
#fi
|
fi
|
||||||
#fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
migrate_profile() {
|
migrate_profile() {
|
||||||
|
|
@ -165,11 +165,10 @@ migrate_profile() {
|
||||||
if readlink /etc/portage/make.profile | grep -qE 'pentoo/hardened/linux/amd64$|pentoo/hardened/linux/amd64/'; then
|
if readlink /etc/portage/make.profile | grep -qE 'pentoo/hardened/linux/amd64$|pentoo/hardened/linux/amd64/'; then
|
||||||
check_profile force
|
check_profile force
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
if [ -L "/lib32" ] || [ -L "/usr/lib32" ]; then
|
||||||
rebuild_lib32
|
rebuild_lib32
|
||||||
rebuild_lib32
|
rebuild_lib32 || WE_FAILED=1
|
||||||
rebuild_lib32
|
|
||||||
rebuild_lib32
|
|
||||||
rebuild_lib32 || die
|
|
||||||
fi
|
fi
|
||||||
if [ -L "/lib32" ] && ! qfile /lib32 > /dev/null 2>&1; then
|
if [ -L "/lib32" ] && ! qfile /lib32 > /dev/null 2>&1; then
|
||||||
rm -rf "/lib32"
|
rm -rf "/lib32"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue