https://bugzilla.novell.com/show_bug.cgi?id=449844
User lslezak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=449844#c2
Ladislav Slezak changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lslezak@novell.com
AssignedTo|lslezak@novell.com |jdsn@novell.com
--- Comment #2 from Ladislav Slezak 2008-11-28 02:57:09 MST ---
Daniel, the problem is that the base/addon product flag is not part of the
metadata anymore.
The base product is the product from the repo which was created by
Pkg::SourceCreateBase() call during installation (i.e. the product which has
been booted).
The reason is that you can have e.g. SLES11 as the base product and SLED11 as
an add-on (e.g. you need ooffice.org something like that) but in fact both
products are base products.
For this reason the "base" flag is set only in the _installed_ products.
The testing script works correctly (returns the base product) if you add
Pkg::TargetInit("/", false);
just at the beginning to load the installed products.
Please adapt your code.
If you have any question just ask me.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.