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}'`

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).?

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

When the customer has beaten upon you long enough, give him what he asks
for, instead of what he needs.  This is very strong medicine, and is
normally only required once.
    -- The Consultant's Curse:
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to