Bug 157586 - Product.ycp dos not work
Summary: Product.ycp dos not work
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Beta 7
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Jiri Srain
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-13 13:59 UTC by Michael Calmer
Modified: 2006-04-18 21:09 UTC (History)
2 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
y2log (8.49 KB, application/octet-stream)
2006-03-15 13:41 UTC, Lukas Ocilka
Details

Note You need to log in before you can comment on or make changes to this bug.
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.