Commit 3d90981d authored by Vitaly Lipatov's avatar Vitaly Lipatov

improve aptU — skip glibc/stdc++ libs and lib versioning

parent d0023749
...@@ -30,7 +30,7 @@ export LC_ALL=C ...@@ -30,7 +30,7 @@ export LC_ALL=C
get_requires() get_requires()
{ {
rpm --requires $@ | grep -v rpmlib | cut -f1 -d" " | sort -u rpm --requires $@ | cut -f1 -d" " | sed -e "s|([A-Z].*||g" | sort -u
} }
# Translate rpm requires to package names # Translate rpm requires to package names
...@@ -60,8 +60,8 @@ install_by_requires() ...@@ -60,8 +60,8 @@ install_by_requires()
fi fi
} }
ALREADYHANDLEDAPT="bash sh apt rpm glibc-core glibc-locales glibc-preinstall filesystem alt-gpgkeys" ALREADYHANDLEDAPT="bash sh apt rpm filesystem alt-gpgkeys"
ALREADYHANDLEDRPM="" ALREADYHANDLEDRPM="rpmlib.* rtld libgcc_s\..* libstdc\+\+.*"
install_packages() install_packages()
{ {
local ERROR= local ERROR=
...@@ -72,7 +72,7 @@ install_packages() ...@@ -72,7 +72,7 @@ install_packages()
$SUDO apt-get install $LIST $SUDO apt-get install $LIST
ALREADYHANDLEDAPT="$ALREADYHANDLEDAPT $LIST" ALREADYHANDLEDAPT="$ALREADYHANDLEDAPT $LIST"
REQLIST="$(get_requires $LIST)" REQLIST="$(get_requires $LIST)"
REQLIST=$(do_exclude_list "$ALREADYHANDLEDRPM" "$REQLIST") REQLIST=$(regexp_exclude_list "$ALREADYHANDLEDRPM" "$REQLIST")
test -n "$REQLIST" || { echog "There is no more req packages to install" ; return ; } test -n "$REQLIST" || { echog "There is no more req packages to install" ; return ; }
install_by_requires $REQLIST install_by_requires $REQLIST
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment