[Bug 449844] New: The YaST pkg-bindings return no base product but only addon products
https://bugzilla.novell.com/show_bug.cgi?id=449844 User jdsn@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=449844#c444301 Summary: The YaST pkg-bindings return no base product but only addon products Product: openSUSE 11.1 Version: RC 1 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: YaST2 AssignedTo: lslezak@novell.com ReportedBy: jdsn@novell.com QAContact: jsrain@novell.com CC: ma@novell.com, suse-beta@cboltz.de, dmacvicar@novell.com Found By: Development The pkg-bindings only return addon-product but no base product. The link in /etc/products.d/baseproduct is present. In order to fix the issue of bug #444301 completely I open this bug. The original bug was fixed - this is the remaining issue. If not fixed for 11.1 it will not be possible to restore the default update repository if it was deleted accidentally or missing due to an error or because the system was created from an image. I will attatch a test ycp program that will demonstrate the issue (tested on openSUSE beta5 and RC1). Just for documentation: Related to this and the original bug is bug #449842 -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=449844 User jdsn@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=449844#c1 --- Comment #1 from J. Daniel Schmidt <jdsn@novell.com> 2008-11-27 14:23:50 MST --- Created an attachment (id=256352) --> (https://bugzilla.novell.com/attachment.cgi?id=256352) Small YCP test program to demonstrate the issue This is a small YCP test program to demonstrate the issue. -- 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.
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 <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lslezak@novell.com AssignedTo|lslezak@novell.com |jdsn@novell.com --- Comment #2 from Ladislav Slezak <lslezak@novell.com> 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.
https://bugzilla.novell.com/show_bug.cgi?id=449844 User jdsn@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=449844#c3 J. Daniel Schmidt <jdsn@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from J. Daniel Schmidt <jdsn@novell.com> 2008-12-01 11:12:15 MST --- Fixed in yast2-registration 2.17.17 -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=449844 User dmacvicar@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=449844#c4 --- Comment #4 from Duncan Mac-Vicar <dmacvicar@novell.com> 2008-12-02 02:08:11 MST --- Ladislav, the fact that only installed products have the flag set only when installed means that the flag is an installation property, therefore the available products should have no flag at all, instead of an arbitrary one. Whether an available product ends as base or addon depends on in which order and how it is installed, and not before. -- 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.
participants (1)
-
bugzilla_noreply@novell.com