https://bugzilla.novell.com/show_bug.cgi?id=369893
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c5
--- Comment #5 from Ján Kupec 2008-03-17 06:43:18 MST ---
Nice, this works via poolitem.status().setToBeInstalled( zypp::ResStatus::USER
) as far as the solver is concerned.
$ src/zypper si zypper
Reading installed packages...
The following NEW packages are going to be installed:
libzypp-devel libsatsolver-devel
The following NEW srcpackages are going to be installed:
zypper
But there are three more problems:
1) commit does not install src packages (as we did not deal with src packages
through the pool previously)
2) we still need srcpkg->dep(Dep::REQUIRES) to be able to do
'zypper si --no-build-deps foo' (only install the source package, ...well we
have ZYpp::installSrcPackage(srcpkg) for that) or to show the build requires
to the user.
3) And finally, the build deps are generated only in rpm-md metadata, we don't
have them in susetags:
##----------------------------------------
=Pkg: zypper 0.10.3 3 src
=Cks: SHA1 e107c279d204938a43182e1c332a029672dc13c5
=Loc: 1 zypper-0.10.3-3.src.rpm src
=Siz: 313403 305351
=Shr: zypper 0.10.3 3 ppc
So if we are to put the srcpackages into the pool together with the others (i
like this approach btw, but i don't know the reasons why we avoided it in the
past) we need to fix the above.
Note that having the srcpackages in the pool also solves the problem of the
query API vs. the srcpackages!
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.