Commit ae80eb12 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm autoorphans: implement skip packages on hold

parent e159cec8
...@@ -42,11 +42,19 @@ case $BASEDISTRNAME in ...@@ -42,11 +42,19 @@ case $BASEDISTRNAME in
| grep -v -- "^distro_info$" \ | grep -v -- "^distro_info$" \
| grep -v -- "^kernel") | grep -v -- "^kernel")
# TODO: implement for other PMTYPE
local play_installed="$(epm play --list-installed-packages)" local play_installed="$(epm play --list-installed-packages)"
if [ -n "$play_installed" ] ; then if [ -n "$play_installed" ] ; then
echo "Skip follow packages installed via epm play: $play_installed" echo "Skip follow packages installed via epm play: $(echo $play_installed | xargs -n1000 echo)"
PKGLIST="$(estrlist exclude "$play_installed" "$PKGLIST")"
fi
# TODO: implement for other PMTYPE
local hold_packages="$(epm mark showhold)"
if [ -n "$hold_packages" ] ; then
echo "Skip follow packages on hold: $(echo $hold_packages | xargs -n1000 echo)"
PKGLIST="$(estrlist exclude "$hold_packages" "$PKGLIST")"
fi fi
PKGLIST="$(estrlist exclude "$play_installed" "$PKGLIST")"
if [ -n "$PKGLIST" ] ; then if [ -n "$PKGLIST" ] ; then
if [ -z "$dryrun" ] ; then if [ -z "$dryrun" ] ; then
......
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