Lukas Ocilka napsal(a):
Benji Weber napsal(a):
Greetings all,
I require the following functions in yast2 package bindings to fix bugs.
- Update package if and only if newer version available
This doesn't seem to be problem of Pkg-bindings but libzypp. Libzypp automagically updates already installed packages even in the very same version.
What parameters would you need here? Just the package name or exact version, from any or from a specified repository...?
- Install package from a specific repository
I don't believe either exists as I can't see anything appropriate from browsing the source. If either does exist please enlighten me, or I will file enhancement requests.
Hmm, not yet, you can select a specific version but repository is up to libzypp (probably during Commit).
That should be possible in libzypp, but it seems to be broken now (even if I used Repository filter in the qt packager widget libzypp installed the package from another repository, the bug might be in libzypp or in qt-pkg). Pkg bindings have function Pkg::ResolvableInstallArchVersion( string name, symbol kind, string arch, string vers ) so it's possible to specify kind, version and arch, but not the repository. I can create a new binding for that... What parameters do you need in addition to package name? What about Pkg::ResolvableInstallRepo( string name, symbol kind, integer repo )? -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org