On Monday 2012-07-02 01:45, 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?
In principle yes (/srv/obs/build/openSUSE:Factory/standard/i586, /srv/obs/build/openSUSE:Factory/standard/x86_64). It's just that the files get intermixed when they get copied/hardlinked to /srv/obs/repos.
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?
1. If rpm -q --qf="%{SOURCERPM}" is empty/(none), you have a SRPM at hand. 2. If rpm -q --qf="%{ARCH}" is noarch, you have a noarch rpm. 3. Otherwise %{ARCH} gives the particular target it was compiled for. It is conceivable that the only reason %{ARCH} is not something generic for SRPMS is that there simply is no way to specify an alternate BuildArch:, since the SRPM is implicit in a .spec - and as such inherits from the main package. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org