-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Oct 27, 2006, at 2:43 PM, Luciano Miguel Ferreira Rocha wrote:
On Fri, Oct 27, 2006 at 08:32:58PM +0200, Rohitashva Sharma wrote:
Dear All,
Is there are way to detect whether the given rpm file is source
rpm or
binary rpm. One possible way is looking at the filename but what if
filename is altered.
From rpm --querytags, I found %{SOURCEPACKAGE}:
$ rpm -qp --qf '%{name}-%{SOURCEPACKAGE}\n' gpart-0.1h-3.1.src.rpm
rpms/RPMS/i386/gpart-0.1h-3.1.i386.rpm
gpart-1
gpart-(none)
This tag exists, but not in all versions of rpm. Testing non-
existence of RPMTAG_SOURCERPM
"works" all versions of rpm.
73 de Jeff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFFQlP9uHNkGyA5spERAoTlAJ9snTlSiuyQCCWPw9nSBrJ+WvC3RwCfQy6G
wTD6Rr5owvoWMbYIP+RHR1o=
=QpvG
-----END PGP SIGNATURE-----
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list