On Tue, Mar 25, 2003, Bill Campbell wrote:

> On Fri, Feb 21, 2003 at 12:01:09PM -0800, Bill Campbell wrote:
>
> Resurrecting an old question because I ran into the size= problem
> again today, and updated to openpkg-20030324-20030324 before
> digging into it again.  The current version is using:
>
>         size=`ls -l $ldir/$file | awk '{printf "%d\n", $5}'`
>
> This should work -- unlesss one ran into a file name which
> contains whitespace which could be addressed with this:
>         size=`ls -l $ldir/$file |
>                 sed -e "s!^$ldir/$file!!" |
>                 awk '{printf "%d\n", $4}'`

I've fixed this in GNU shtool for the next release and included a
snapshot copy of it in the latest openpkg-20030404-20030404 package. It
should be now aware of whitespaces. Thanks for your feedback.

> A potential problem I found when looking at the diffs between some scripts
> I had hacked in an earlier version of openpkg, and the current one is that
> the current %{l_prefix}/etc/rc script has changed all references of ``ls''
> to ``/bin/ls''.  This could cause problems on systems running the coreutils
> with strange system ``ls'' commands.  Shouldn't this then be replace with
> ``%{l_prefix}/bin/ls'' instead (it's not -- I just rebuilt the SRPMS on a
> system with coreutils).?

We cannot replace /bin/ls in the rc script to %{l_prefix}/bin/ls because
the rc script is part of the bootstrap package and at its time there are
no coreutils installed in the OpenPKG instance.

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to