http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c22
Ján Kupec
- Libzypp already provides some methods to retrieve certain baseproduct values without explicitly initializing the target. zypper uses them e.g. for 'zypper tos'.
Heh, i already forgot we have this command! But the command does initialize the target: case ZypperCommand::TARGET_OS_e: { // needed to be able to retrieve the target distribution init_target(*this); out().info(God->target()->targetDistribution()); break; } But it does not load repos, and does not need the global lock, which is the most important thing here, right?
We can offer something similar for the bootloader, if you ask for it. Could be called 'zypper bootlabel' or so.
OK, i'll think of something.
Just ask Jano to implement the CLI and tell me which value(s) from the product are needed. Then your code does not need to know anything about the products.d entries, and you probably get the ready to use string out of zypper.
Bootloader needs the values returned by Product::shortName() and Product::summary(). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.