[Techtalk] querying RPM for recently installed packages

John Clarke johnc+linuxchix at kirriwa.net
Wed May 26 20:36:22 EST 2004


On Wed, May 26, 2004 at 09:47:07 +0000, Conor Daly wrote:
> On Wed, May 26, 2004 at 03:27:15PM +1000 or thereabouts, John Clarke wrote:
> > 
> >     # set IFS to newline so that the loop variable contains the
> >     # package name and date
> >     IFS='
> >     '
> 
> This wouldn't work when I pasted from mutt.  I had to manually insert the
> newline in vi after.  This is an artifact of copy/paste rather than the
> program.

That's strange.  When I was writing it, I copied this bit from an xterm
into nedit, and just now I tried it both from mutt to nedit and mutt to
vi and it worked fine each time.

> >         if [ $time -lt $limit ]
>                      ^^^
> 
> It works for me only if this is '-ge' (we want 'younger than $limit')

Yes, thanks, that's what it should be.  It was '-ge' originally, but
then I changed it to this:

    if [ $time -lt $limit ]
    then
        break
    fi
    echo $package: $date 

I decided that the original was clearer and thought I'd changed it back
the way it was, but it looks like I didn't undo enough steps :-(  I
should have left it alone.


Cheers,

John
-- 
If you link /dev/tape to /dev/null, your backups go WAY faster - and only
about 20% less likely to fail a restore than if you'd used Exabyte.
            -- Paul Tomblin


More information about the Techtalk mailing list