[zypp-devel] Relation between Products and <dist>-release package
Hi, There seem to be a hard dependency between product definition and the <dist>-release package, when the release-package is updated, the product is being removed: Reading installed packages... Computing distribution upgrade... The following product is going to be REMOVED: XXXX Is the –release package a special package that can't be updated or am I missing something here? Anas -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
Hi Anas, On 07/26/2013 08:35 PM, Nashif, Anas wrote:
Hi,
There seem to be a hard dependency between product definition and the <dist>-release package, when the release-package is updated, the product is being removed:
Reading installed packages... Computing distribution upgrade...
The following product is going to be REMOVED: XXXX
Is the –release package a special package that can't be updated or am I missing something here?
The -release package gets updated as any other package - in fact, it is the step which is done to enable on-line migration of our products. The relation between the -release and -release-<flavor> packages and the product is expressed by the dependencies. I don't know your specific case, but is there any chance that the newer version of the package misses the needed Provide dependencies? Is the product (with newer version) also included in the metadata (repodata/products.xml)? Jiri -- Regards, Jiri Srain Project Manager --------------------------------------------------------------------- SUSE LINUX, s.r.o. e-mail: jsrain@suse.com Lihovarska 1060/12 tel: +420 284 084 659 190 00 Praha 9 fax: +420 284 084 001 Czech Republic http://www.suse.com -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
On Friday 26 July 2013 20:35:09 Nashif, Anas wrote:
Hi,
There seem to be a hard dependency between product definition and the <dist>-release package, when the release-package is updated, the product is being removed:
Reading installed packages... Computing distribution upgrade...
The following product is going to be REMOVED: XXXX
Is the –release package a special package that can't be updated or am I missing something here?
Expected is a 1-1 releation between a product (.prod file in /etc/products.d/) and it's release package (actually the package containing the .prod file). As the .prod file is included in a package, the repo metadata need to contain an abstract of the product metadata (at lest everything required to properly resolve the product). As Jiri mentioned, these data are shipped in eiter repodata/products.xml (rpmmd repo format) or in the content file (suse repo). For each product version in the repo, its coresponding -release package is found by looking for the package providing: Provides: product() Provides: product(<PRODUCTNAME>) = <PRODUCTVERSION>-<PRODUCTRELEASE> <PRODUCTNAME>, <PRODUCTVERSION> and <PRODUCTRELEASE> in the package provides and in the repos product metadata must match the products data stored in the .prod file included in the release package. Without product metadata or the linking Provides: the resolver does not see that the product is continued when the -release package is updated. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
Thanks, it works as detailed below now. Anas On 29/07/2013 03:38, "Michael Andres" <ma@suse.de> wrote:
On Friday 26 July 2013 20:35:09 Nashif, Anas wrote:
Hi,
There seem to be a hard dependency between product definition and the <dist>-release package, when the release-package is updated, the product is being removed:
Reading installed packages... Computing distribution upgrade...
The following product is going to be REMOVED: XXXX
Is the release package a special package that can't be updated or am I missing something here?
Expected is a 1-1 releation between a product (.prod file in /etc/products.d/) and it's release package (actually the package containing the .prod file).
As the .prod file is included in a package, the repo metadata need to contain an abstract of the product metadata (at lest everything required to properly resolve the product).
As Jiri mentioned, these data are shipped in eiter repodata/products.xml (rpmmd repo format) or in the content file (suse repo).
For each product version in the repo, its coresponding -release package is found by looking for the package providing:
Provides: product() Provides: product(<PRODUCTNAME>) = <PRODUCTVERSION>-<PRODUCTRELEASE>
<PRODUCTNAME>, <PRODUCTVERSION> and <PRODUCTRELEASE> in the package provides and in the repos product metadata must match the products data stored in the .prod file included in the release package.
Without product metadata or the linking Provides: the resolver does not see that the product is continued when the -release package is updated.
--
cu, Michael Andres
+------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
-- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
participants (3)
-
Jiri Srain
-
Michael Andres
-
Nashif, Anas