[zypp-devel] vendor
Hi, I have tried to update oS 11.0 to SLES 11 Alpha2 using zypper dup. The proposed transaction only contained a dozen of packages, and it turned out that zypp thinks the SLES packages have no vendor specified. Is that a known bug? (Or a "feature"?) Consequently the solver thought that I would be changing the vendor of all packages and did not allow to update them. So I thought never mind, there I see a mention of "vendors.d" in the log file where I should be able to say that the empty vendor is equivalent to "SUSE LINUX Products GmbH, Nuernberg, Germany". But there is no documentation :( (And after reading the code I suspect that it is unusable because it assumes the vendor name does not contain a comma.) Is this supposed to work at all? -- Martin Vidner, YaST developer http://www.google.com/images?q=argh Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
Dňa Tuesday 02 September 2008 09:55:53 Martin Vidner ste napísal:
Hi,
I have tried to update oS 11.0 to SLES 11 Alpha2 using zypper dup.
Apples to oranges? Please, don't do that.
The proposed transaction only contained a dozen of packages, and it turned out that zypp thinks the SLES packages have no vendor specified. Is that a known bug? (Or a "feature"?)
Hard to tell with such crazy scenario.
Consequently the solver thought that I would be changing the vendor of all packages and did not allow to update them. So I thought never mind, there I see a mention of "vendors.d" in the log file where I should be able to say that the empty vendor is equivalent to "SUSE LINUX Products GmbH, Nuernberg, Germany".
But there is no documentation :( (And after reading the code I suspect that it is unusable because it assumes the vendor name does not contain a comma.) Is this supposed to work at all?
No sure, but again, please, stick to a reasonable scenario first. Stano -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
Hi, On Tue, 2 Sep 2008, Stanislav Visnovsky wrote:
Dňa Tuesday 02 September 2008 09:55:53 Martin Vidner ste napísal:
Hi,
I have tried to update oS 11.0 to SLES 11 Alpha2 using zypper dup.
Apples to oranges? Please, don't do that.
The proposed transaction only contained a dozen of packages, and it turned out that zypp thinks the SLES packages have no vendor specified. Is that a known bug? (Or a "feature"?)
Hard to tell with such crazy scenario.
That's not a crazy scenario at all IMO. Though zypper dup is not the official distupgrade way, and we don't officially support upgrading to alphas or beta anyway (though I've always done that for instance), libzypp should behave "reasonable" in these circumstances. And I don't consider the described behaviour such. If nothing else it points to a problem in meta-data generation if the packages from SLE11 really have no vendor or no known one.
Consequently the solver thought that I would be changing the vendor of all packages and did not allow to update them. So I thought never mind, there I see a mention of "vendors.d" in the log file where I should be able to say that the empty vendor is equivalent to "SUSE LINUX Products GmbH, Nuernberg, Germany".
But there is no documentation :( (And after reading the code I suspect that it is unusable because it assumes the vendor name does not contain a comma.) Is this supposed to work at all?
That seems a unfortunate yes. The comparison function falls back to substring comparison and lowercasing, though, so I think "SUSE.*" should already match "suse". Must be debugged :-) Ciao, Michael.
Dňa Tuesday 02 September 2008 14:30:35 ste napísal:
Hi,
On Tue, 2 Sep 2008, Stanislav Visnovsky wrote:
Dňa Tuesday 02 September 2008 09:55:53 Martin Vidner ste napísal:
Hi,
I have tried to update oS 11.0 to SLES 11 Alpha2 using zypper dup.
Apples to oranges? Please, don't do that.
The proposed transaction only contained a dozen of packages, and it turned out that zypp thinks the SLES packages have no vendor specified. Is that a known bug? (Or a "feature"?)
Hard to tell with such crazy scenario.
That's not a crazy scenario at all IMO. Though zypper dup is not the official distupgrade way, and we don't officially support upgrading to alphas or beta anyway (though I've always done that for instance), libzypp should behave "reasonable" in these circumstances. And I don't consider the described behaviour such.
If nothing else it points to a problem in meta-data generation if the packages from SLE11 really have no vendor or no known one.
I agree, this looks suspicious. But it should be reproduced on something that can vaguely point to a valid scenario, so we can at least reproduce it in 2 months. Stano -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Tue, Sep 02, 2008 at 02:35:01PM +0200, Stanislav Visnovsky wrote:
Dňa Tuesday 02 September 2008 09:55:53 Martin Vidner ste napísal:
I have tried to update oS 11.0 to SLES 11 Alpha2 using zypper dup.
I agree, this looks suspicious. But it should be reproduced on something that can vaguely point to a valid scenario, so we can at least reproduce it in 2 months.
I have reproduced it on SLES11 Alpha1 -> Alpha2. Will file a bug. -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
Dňa Wednesday 03 September 2008 12:39:30 Martin Vidner ste napísal:
On Tue, Sep 02, 2008 at 02:35:01PM +0200, Stanislav Visnovsky wrote:
Dňa Tuesday 02 September 2008 09:55:53 Martin Vidner ste napísal:
I have tried to update oS 11.0 to SLES 11 Alpha2 using zypper dup.
I agree, this looks suspicious. But it should be reproduced on something that can vaguely point to a valid scenario, so we can at least reproduce it in 2 months.
I have reproduced it on SLES11 Alpha1 -> Alpha2. Will file a bug.
Thanks! Stano -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
Martin Vidner schrieb:
Hi,
I have tried to update oS 11.0 to SLES 11 Alpha2 using zypper dup. The proposed transaction only contained a dozen of packages, and it turned out that zypp thinks the SLES packages have no vendor specified. Is that a known bug? (Or a "feature"?)
Consequently the solver thought that I would be changing the vendor of all packages and did not allow to update them. So I thought never mind, there I see a mention of "vendors.d" in the log file where I should be able to say that the empty vendor is
Empty vendors are bad. Repo error ? Could you please generate a testcase ?
equivalent to "SUSE LINUX Products GmbH, Nuernberg, Germany".
But there is no documentation :(
It is documented in the zypp.conf: ## ## Defining directory which contains vendor description files. ## ## One file in this directory reflects a group of equivalent vendors. e.G.: ## (filename is "nvidia" but could be any other name): ## ------------------------- file contains begin ----------------------- ## [main] ## ## vendors = nvidia,suse,opensuse ## ## ------------------------- file contains end ----------------------- ## Libzypp makes an string comparision (like strncmp, case-insensitive) ## whereas the beginning of the strings are compared only. ## e.G. vendor "opensuse11.0" is compatible to "openSuSE". ## ## Valid values: A directory ## Default value: {configdir}/vendors.d ## # vendordir = /etc/zypp/vendors.d
(And after reading the code I suspect that it is unusable because it assumes the vendor name does not contain a comma.)
You only need the "beginning" of the string. See the docu above.
Is this supposed to work at all?
Yes. :-) Greetings Stefan -- ******************************************************************************* Stefan Schubert SUSE LINUX GmbH - Maxfeldstrasse 5 - D-90409 Nuernberg, Germany e-mail: schubi@suse.de ------------------------------------------------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (4)
-
Martin Vidner
-
Michael Matz
-
Stanislav Visnovsky
-
Stefan Schubert