Bugzilla – Bug 328839
[opensuse-updater][kde] package upgrades install does nothing
Last modified: 2008-06-04 08:55:28 UTC
To reproduce: add factory enable package upgrades (optional updates) You will have some thousands packages available apply them nothing will happen It seems something to do with the command line length zypper_install spawns
Same thing under Gnome.
Jano, can this be fixed by improved communication between zypper and opensuse-updater? E.g. sending zypper the instructions not as command line but as xml via stdin/out.
Of course, as we concluded at the YaST workshop. But i didn't have time to think about how to actually do it since then. XML output is easy, but how about the input? How about starting a discussion about this on the softwaremgmt.o.o.? I'll send the initial message.
BTW: why the updater feeds zypper with arguments? why doesn't it just call zypper update -t package? Is it because the applet wants to install also patches in the same run?
Well, on the second thought, maybe there's not much to discuss. I realized so far there are only 3 kinds of inputs for zypper: - options and command arguments - that's the case of this bug - answers to prompts - this is just about passing simple values based upon the questions recognized from the (xml) output (also a TODO). - control (stop) - i can think only of one example - the interruption of zypper, which can be handled by SIGINT. So i'd say yes, we could make zypper able to eat an XML from a file stream. We just need to (well, yes :O) discuss it and decide if it is the way to go.
(In reply to comment #5 from Jan Kupec) > So i'd say yes, we could make zypper able to eat an XML from a file stream. We > just need to (well, yes :O) discuss it and decide if it is the way to go. Right, we should decide whether XML-Input-Stream and/or PackageKit is the solution. Let's include jkress into this discussion.
I think PackageKit can't be much of a help here, because IMHO, it will not be ready for consumption for 11.0 -- ready for thorough testing and evaluation yes, but nothing more. We should be able to feed zypper with a long list of packages. Whether it's XML or simply a plain text (or yaml?) is actually not important. We don't use zypper update, because the possibility to deselect packages from the list of updates. We could use update for case in which the complete list is not altered, but this would still leave out corner cases, where someone deselects one critical package from a Factory update. But I still don't get why there haven't been any updates at all. I actually ran test with 1000 and more packages to update. And even when one package name was cut in the middle it simply said that this package doesn't exist and went on with the other 1300-odd packages. Maybe there was something else wrong (Duncan played with his libzypp, didn't he :-) ). If it happens again there should be some logs provided.
Later: I will fix that in opensuseupdater as soon as zypper can read commands from a xml file or stdin.
Due to bug 364875 this feature cannot be implemented.