Commit c3c46ff8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm mark: add checkhold

parent 30b43e62
...@@ -187,6 +187,22 @@ esac ...@@ -187,6 +187,22 @@ esac
} }
epm_mark_checkhold()
{
# workaround against epm assure questions
case $PMTYPE in
dnf-rpm)
__dnf_assure_versionlock
load_helper epm-query
docmd dnf versionlock list | grep "^$1" | sed -e 's|\.\*$||' | grep -v " " | filter_pkgnames_to_short | grep -q "^$1$"
return
;;
esac
epm_mark_showhold | grep -q "^$1$"
}
epm_mark_auto() epm_mark_auto()
{ {
...@@ -326,6 +342,9 @@ epm_mark() ...@@ -326,6 +342,9 @@ epm_mark()
showhold) # HELPCMD: print the list of packages on hold showhold) # HELPCMD: print the list of packages on hold
epm_mark_showhold "$@" epm_mark_showhold "$@"
;; ;;
checkhold) # HELPCMD: return true if the package is on hold
epm_mark_checkhold "$@"
;;
auto) # HELPCMD: mark the given package(s) as automatically installed auto) # HELPCMD: mark the given package(s) as automatically installed
epm_mark_auto "$@" epm_mark_auto "$@"
;; ;;
......
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