Commit 68dda39d authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-packages: hack for Slackware

parent baed4b38
...@@ -76,7 +76,10 @@ case $PMTYPE in ...@@ -76,7 +76,10 @@ case $PMTYPE in
slackpkg) slackpkg)
CMD="ls -1 /var/log/packages/" CMD="ls -1 /var/log/packages/"
if [ -n "$short" ] ; then if [ -n "$short" ] ; then
docmd ls -1 /var/log/packages/ | sed -e "s|-[0-9].*||g" # FIXME: does not work for libjpeg-v8a
# TODO: remove last 3 elements (if arch is second from the last?)
# FIXME this hack
docmd ls -1 /var/log/packages/ | sed -e "s|-[0-9].*||g" | sed -e "s|libjpeg-v8a.*|libjpeg|g"
return return
fi fi
;; ;;
......
...@@ -129,6 +129,7 @@ __epm_query_name() ...@@ -129,6 +129,7 @@ __epm_query_name()
warning "fix query" warning "fix query"
return 1 return 1
;; ;;
# Note: slackpkg info pkgname
*) *)
_query_via_packages_list $@ _query_via_packages_list $@
return return
......
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