[Slackbuilds-users] hoorex-0.6.4 and tty control Strings

Konrad J Hambrick kjhambrick at gmail.com
Mon Sep 17 11:11:47 UTC 2018


On Mon, Sep 17, 2018 at 12:46 AM, Christoph Willing <
chris.willing at iinet.net.au> wrote:

> On 17/9/18 8:42 am, Christoph Willing wrote:
> > On 16/9/18 8:10 pm, Konrad J Hambrick wrote:
> [snip]
> >
> > A problem I will have with the python curses solution is how to test. Is
> > your problem due to a physical device you're using, or is it to do with
> > how you're using hoorex in your update scripts i.e. something I could
> > replicate sufficiently to test any fix?
> >
> Hi Konrad,
>
> I just discovered something which I hope is relevant - I can see the
> escape sequences when I pipe or redirect hoorex output anywhere. That
> breaks a use case described in the man page - not good - so I've
> committed a fix for this situation (by first testing whether output
> device is a tty).
>
> Is your case similar to that (a script piping or redirecting hoorex
> output somewhere)? If so, the attached patch should fix it. Could you
> test it (against 0.6.4) if you have time?
>
> Thanks,
> chris
>
> Chris --

Yes, I am invoking something like the code below my sig.

-- kjh

Example:  what do I need for postgis ?

### cut  here ###
Pkg="postgis"
Lst=""

for Dep in $(hoorex -r -m $Pkg)
do

   GotIt="$(ls -1 /var/log/packages/$Dep-[0-9]* 2>/dev/null)"

   if [ "$GotIt" != "" ]
   then
      echo "$Dep is already installed as $(basename $GotIt)"
      continue
   fi

   Lst="$Lst $Dep"

   echo "you'll need to build and install $Dep"

   # sh get-SBo-pkg $Dep    # this script copies the SBo Directory to my
working Directory and downloads files and checks md5sums

done

[ "$Lst" != "" ] && echo "now go build and intstall $Lst"

### cut there ###

This is what I see today for postgis:

geos is already installed as geos-3.7.0-x86_64-1_SBo
proj is already installed as proj-5.1.0-x86_64-2_SBo
postgresql is already installed as postgresql-9.6.10-x86_64-1_SBo_kjh
gdal is already installed as gdal-2.3.1-x86_64-1_SBo_kjh
postgis is already installed as postgis-2.4.5-x86_64-1_SBo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20180917/15a4f0fe/attachment.html>


More information about the SlackBuilds-users mailing list