Re: etc-update doesnt work after migration from arch
Reply #3 –
If you mean "etc-update" package from community it parses os-release file and tries to match few distros and Artix is NOT one of them.
The default option is to use "gentoo".
See:
https://github.com/gentoo/portage/blob/master/bin/etc-update#L35
I would say patches are welcome.
EDIT: I tried to send them an email with a patch, hope there will be some reply.
The patch may look somewhat like this (handmade diff):
OS_RELEASE_POSSIBLE_IDS=$(source /etc/os-release >/dev/null 2>&1; echo ":${ID}:${ID_LIKE//[[:space:]]/:}:")
case ${OS_RELEASE_POSSIBLE_IDS} in
*:suse:*|*:opensuse:*|*:opensuse-tumbleweed:*) OS_FAMILY='rpm';;
*:fedora:*|*:rhel:*) OS_FAMILY='rpm';;
- *:arch:*) OS_FAMILY='arch' NEW_EXT='pacnew';;
+ *:arch:*|*:artix:*) OS_FAMILY='arch' NEW_EXT='pacnew';;
*) OS_FAMILY='gentoo';;
esac
if [[ $OS_FAMILY == 'gentoo' ]]; then
get_basename() {
printf -- '%s\n' "${1:10}"
}
get_basename_find_opt() {