Bug 328839 - [opensuse-updater][kde] package upgrades install does nothing
Summary: [opensuse-updater][kde] package upgrades install does nothing
Status: RESOLVED WONTFIX
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: libzypp (show other bugs)
Version: RC 1
Hardware: Other Other
: P5 - None : Normal with 1 vote (vote)
Target Milestone: ---
Assignee: Thomas Göttlicher
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on: 364875
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-27 09:31 UTC by Duncan Mac-Vicar
Modified: 2008-06-04 08:55 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan Mac-Vicar 2007-09-27 09:31:03 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
Comment 1 Forgotten User mbHMon8IUm 2007-10-29 18:00:13 UTC
Same thing under Gnome.
Comment 2 Thomas Göttlicher 2007-11-08 16:24:08 UTC
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. 
Comment 3 Jan Kupec 2007-11-09 17:17:01 UTC
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.
Comment 4 Jan Kupec 2007-11-09 17:19:08 UTC
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?
Comment 5 Jan Kupec 2007-11-09 17:30:58 UTC
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.
Comment 6 Thomas Göttlicher 2007-11-12 10:02:44 UTC
(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.
Comment 7 Joerg Kress 2007-11-12 15:04:37 UTC
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. 
Comment 8 Thomas Göttlicher 2007-11-15 16:02:23 UTC
Later: I will fix that in opensuseupdater as soon as zypper can read commands from a xml file or stdin.
Comment 9 Thomas Göttlicher 2008-06-04 08:55:28 UTC
Due to bug 364875 this feature cannot be implemented.