RPM Community Forums

Mailing List Message of <rpm-users>

%{FILENAME} tag

From: Elan Ruusamäe <glen@delfi.ee>
Date: Thu 14 Feb 2008 - 18:37:07 CET
Message-Id: <200802141937.07977.glen@delfi.ee>
i'm doing such oneliner (don't ask why) to sign packages caming from stdin:

xargs -l1 -I '%{F}' rpm --nodigest --nosignature -qp --qf '%|SIGGPG?{}:{%{F}\n}|' '%{F}' | xargs -r rpm --resign

it would minimize rpm invocations if rpm supported %{FILENAME} tag expansion:

xargs rpm --nodigest --nosignature -qp --qf '%|SIGGPG?{}:{%{FILENAME}\n}|' | xargs -r rpm --resign

this will output all filenames that do not have %{SIGGPG} tag present.

-- 
glen
Received on Thu Feb 14 18:37:13 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.