* Elmar Stellnberger
What about simply utilizing a previously unused rpm-tag to directly determine via the rpm-header where a package came from? Then we do not need to parse the whole history just for this purpose!
What are you trying to achieve ? Both values provide different information. The zypper history shows the repo the package was downloaded from. The rpm distribution and vendor tags show where the package was build.
I have had a look at all header entries and have found a promising up to now unused candidate: RPMTAG_SOURCE
RPMTAG_SOURCE already has a different definition: A list of the source files that are present in the SRPM package. All files listed here will be placed in the relevant C<SOURCES> directory when building from this SRPM. All source files listed in the original spec are listed here, even if some were excluded by the B<NOSOURCE> tag defined earlier.
For the future RPMTAG_SOURCE could carry the Buildservice-URL a package is provided via. SOURCE = http://download.opensuse.org/repositories/KDE:/Community/openSUSE_11.1
The repo URL is of little value since it just shows the distribution channel, not the origin.
RPMTAG_DISTRIBUTION could then no longer be complicated with the info already present in RPMTAG_ARCH, but extended with a hint like Buildservice/Core:
now: DISTRIBUTION = openSUSE 11.0 (X86-64) ARCH = x86_64
as proposed: DISTRIBUTION = openSUSE 11.0 / Buildservice ARCH = x86_64
Well, DISTRIBUTION should describe the 'build environment': A text label identifying the name given to the overall larger distribution the package itself is a part of. To identify the package origin, two tags are useful: RPMTAG_PACKAGER Name of the group/company/individual who built the package. RPMTAG_VENDOR An alternate identifier for the company that created and provided the package. But this topic is now more likely suited for opensuse-buildservice@opensuse.org or opensuse-packaging@opensuse.org ;-) Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org