<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Mon, Sep 17, 2018 at 12:46 AM, Christoph Willing <span dir="ltr"><<a href="mailto:chris.willing@iinet.net.au" target="_blank">chris.willing@iinet.net.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On 17/9/18 8:42 am, Christoph Willing wrote:<br>
> On 16/9/18 8:10 pm, Konrad J Hambrick wrote:<br>
</span>[snip]<br>
<span class="gmail-">> <br>
> A problem I will have with the python curses solution is how to test. Is<br>
> your problem due to a physical device you're using, or is it to do with<br>
> how you're using hoorex in your update scripts i.e. something I could<br>
> replicate sufficiently to test any fix?<br>
> <br>
</span>Hi Konrad,<br>
<br>
I just discovered something which I hope is relevant - I can see the<br>
escape sequences when I pipe or redirect hoorex output anywhere. That<br>
breaks a use case described in the man page - not good - so I've<br>
committed a fix for this situation (by first testing whether output<br>
device is a tty).<br>
<br>
Is your case similar to that (a script piping or redirecting hoorex<br>
output somewhere)? If so, the attached patch should fix it. Could you<br>
test it (against 0.6.4) if you have time?<br>
<br>
Thanks,<br>
chris<br>
<br></blockquote><div><span class="gmail_default" style="font-family:courier new,monospace"></span><span style="font-family:monospace,monospace">Chris --<br><br>Yes, I am invoking something like the code below my sig.<br><br>-- kjh<br><br>Example:  what do I need for postgis ?<br><br>### cut  here ###<br>Pkg="postgis"<br>Lst=""<br><br>for Dep in $(hoorex -r -m $Pkg)<br>do<br> <br>   GotIt="$(ls -1 /var/log/packages/$Dep-[0-9]* 2>/dev/null)"<br><br>   if [ "$GotIt" != "" ]<br>   then<br>      echo "$Dep is already installed as <span class="gmail_default" style="font-family:courier new,monospace">$(basename </span>$GotIt<span class="gmail_default" style="font-family:courier new,monospace">)</span>"<br>      continue<br>   fi<br><br>   Lst="$Lst $Dep"<br><br>   echo "you'll need to build and install <span class="gmail_default" style="font-family:courier new,monospace"></span>$Dep"<br><br>   # sh get-SBo-pkg $Dep    # this script copies the SBo Directory to my working Directory and downloads files and checks md5sums<br><br>done<br><br>[ "$Lst" != "" ] && echo "now go build and intstall $Lst"<br><br>### cut there ###</span><br><br><div style="font-family:courier new,monospace" class="gmail_default">This is what I see today for postgis:<br><br>geos is already installed as geos-3.7.0-x86_64-1_SBo<br>proj is already installed as proj-5.1.0-x86_64-2_SBo<br>postgresql is already installed as postgresql-9.6.10-x86_64-1_SBo_kjh<br>gdal is already installed as gdal-2.3.1-x86_64-1_SBo_kjh<br>postgis is already installed as postgis-2.4.5-x86_64-1_SBo<br><br></div><br></div></div></div></div></div></div></div></div></div></div>