On Wednesday 30 May 2007, Jonathan Underwood wrote: > On 30/05/07, Jonathan Underwood <jonathan.underwood@xxxxxxxxx> wrote: > > Also, this wouldn't work as intended on a system where more than one > arch of the emacs package is installed - eg. on my system i seem to > have emacs.x86_64 and emacs.i386 installed, and so > > rpm -q --qf=%{VERSION} emacs > > gives 22.0.9922.0.99. > > Granted, that wouldn't happen in a mock chroot buildroot, but still, I > think we should do a bit better than that :) Can't see how though :( Perhaps something like this (untested): rpm -qf --qf="%{VERSION}\n" /usr/bin/emacs | head -n 1 I'm sure there's a limit somewhere how far we're willing to take these tweaks though. -- Fedora-packaging mailing list Fedora-packaging@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-packaging