Bug 157586

Summary: Product.ycp dos not work
Product: [openSUSE] SUSE Linux 10.1 Reporter: Michael Calmer <mc>
Component: YaST2Assignee: Jiri Srain <jsrain>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Normal    
Priority: P5 - None CC: kkaempf, suse-beta
Version: Beta 7   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2log

Description Michael Calmer 2006-03-13 13:59:02 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.
Comment 1 Lukas Ocilka 2006-03-15 13:41:46 UTC
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 ---
Comment 2 Lukas Ocilka 2006-03-15 13:58:29 UTC
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"]]
Comment 3 Jiri Srain 2006-03-16 19:30:22 UTC
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?
Comment 4 Michael Calmer 2006-03-17 14:06:00 UTC
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?
Comment 5 Stanislav Visnovsky 2006-03-20 09:57:33 UTC
I've found "baseproduct" in the installation server and in the CD-creator module. The magic there is unbelievable.
Comment 6 Jiri Srain 2006-04-18 21:09:39 UTC
Yes, but they are not read from Product:: there, so resolving this bug as FIXED.