[3450] in SIPB_Linux_Development
Re: outstanding bugs
daemon@ATHENA.MIT.EDU (Greg Hudson)
Fri Apr 13 10:22:55 2001
Message-Id: <200104131420.KAA01244@egyptian-gods.MIT.EDU>
To: Jonathon Weiss <jweiss@mit.edu>
cc: linux-dev@mit.edu
In-Reply-To: Your message of "Fri, 13 Apr 2001 00:54:16 EDT."
<200104130454.AAA09079@speaker-for-the-dead.mit.edu>
Date: Fri, 13 Apr 2001 10:20:42 -0400
From: Greg Hudson <ghudson@MIT.EDU>
> ! rpm -qa | | sed -e 's/$/.ARCH.rpm/' > /var/athena/release-rpms
A few problems:
* "| |" will generate a syntax error.
* You have to put a '/' at the beginning of the line
(rpmupdate should be less picky here, but it's not).
* This will pretty much screw SMP machines.
Is it really that hard to stash the release RPM list somewhere and
copy it in in the postinstall script?
If you do go with this approach, you might consider:
rpm -qa --queryformat '/%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n'
It's kind of a shame that you have to use all of
"%{NAME}-%{VERSION}-%{RELEASE}" to get back to where you were without
a queryformat argument, though.