[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Where a newly-built rpm resides?



On Sat, Mar 29, 2003 at 07:05:39PM +0100, Matthias Saou wrote:
> Isaac Claymore <clay@dawning.com.cn> wrote :
> 
> > I have script who does 'rpmbuild -tb foo.tgz', and I need to know
> > where the newly-built rpms reside, since _topdir can be redefined by
> > users.
> > 
> > Is grepping rpmbuild outputs the only way?
> 
> In your script, you could get the current value with:
> rpm --eval '%{_topdir}'
> 
> But to be more accurate, you'd probably want to do this instead:
> rpm --eval '%{_rpmdir}/%{_rpmfilename}'
> rpm --eval '%{_srcrpmdir}/%{_rpmfilename}'

Cool, thanks. That's exactly what I've been looking for ;)
 
> As indeed users may redefine any of the above (and I know I do).
> 
> Matthias
> 

-- 

Isaac Claymore                  /"\    ASCII Ribbon Campaign
Dawning Inc.                    \ /    Respect for open standards
Beijing, China                   X     No HTML/RTF in email
http://www.dawning.com.cn       / \    No M$ Word docs in email





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []