Bugzilla – Bug 157586
Product.ycp dos not work
Last modified: 2006-04-18 21:09:39 UTC
suseRegister.rpm includes a little tool called suse_release which uses Product.ycp to get the Product name, version, etc. I tested it with Beta7+ or pre Beta8 (build702) and it still not works. #> suse_release -a Product: SUSE LINUX Version: Vendor: Dist: Distproduct: Distversion: Baseproduct: SUSE LINUX Baseversion: rug/zmd is with this build is able to give me name and version. So I think libzypp has everything implemented now what is needed to get this.
Created attachment 73013 [details] y2log y2log created during running command: `suse_release -a` >> --- cut --- Product: SUSE LINUX Version: Vendor: Dist: Distproduct: Distversion: Baseproduct: SUSE LINUX Baseversion: --- cut ---
Just a small test: YCP: Pkg::TargetInit ("/", false); list all_products = Pkg::TargetProducts(); y2milestone("PRODUCTS: %1", all_products); Pkg Builtin called: TargetProducts PRODUCTS: [$["name":"SUSE LINUX", "relnotesurl":"http://www.suse.com/relnotes/i386/SUSE-LINUX/FACTORY/release-notes.rpm"]]
ZYPP has it implemented, Pkg bindings do provide it via Currently, the only missing attributes are: Dist: Distproduct: Distversion: Baseproduct: Baseversion: Do we need them at all?
Why do you ask me? Who in YaST using Product.ycp and which values he want to have? What happens with these modules if these values are not available? I think I do not need it anymore. But what about others?
I've found "baseproduct" in the installation server and in the CD-creator module. The magic there is unbelievable.
Yes, but they are not read from Product:: there, so resolving this bug as FIXED.