On 2012-07-01 16:45:47 -0700, Linda Walsh wrote:
I was writing a util to examine poorly named 'rpm' files to see what was in them and what architecture they were for.
I was surprised to find out that all of the "src" rpms don't say "arch=src" or "arch=none", but arch=i586 OR arch=x86_64...
Are there separate sources for each architecture? If not, could this information be set that "src"'s "arch" field indicates it is "arch" agnostic"? -- so one can look at the arch field and know it's not a binary installable?
You can distinguish binaries from a source rpm via the sourcerpm tag ("RPMTAG_SOURCERPM"). Source rpms have no sourcerpm tag. For instance try: rpm -qp --queryformat "%{SOURCERPM}\n" <sourcerpm> and rpm -qp --queryformat "%{SOURCERPM}\n" <binaryrpm> Marcus -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org