When a package (with specified version) is contained in multiple repositories, we register in packagemeta the last one we see. But if libsolv decides that the package needs to be installed, its solution may arbitrarily specify one from a different repo. This caused me some confusion when debugging an unrelated issue, and I created the attached patch to "fix" it. In retrospect, I'm not sure this patch is right, but I'm sending it anyway for the sake of discussion. My hesitation comes from the fact that libsolv might have a good reason for preferring the one it chose, e.g., if we've assigned priorities to the repos. On the other hand, if we've gone to the trouble of assigning priorities, shouldn't packagemeta reflect our choice? I'm of two minds here. Ken