|
Bugzilla – Full Text Bug Listing |
| Summary: | zypper does not provide feedback for downloading (metadata) | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.0 | Reporter: | Stanislav Visnovsky <visnov> |
| Component: | libzypp | Assignee: | Jan Kupec <jkupec> |
| Status: | RESOLVED FIXED | QA Contact: | Klaus Kämpf <kkaempf> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | coolo, dmacvicar, kkaempf, lslezak, tgoettlicher, thomas.goettlicher |
| Version: | Alpha 2 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Stanislav Visnovsky
2007-08-16 07:27:09 UTC
Tom, would fixing this influence opensuseupdtaers? opensuseupdater can show progress via xml using the <progress/> tag. Example: <progress id="downloading-packages" type="percentage" value="25" name="Downloading packages from factory"/> <progress id="downloading-packages" type="percentage" value="50" name="Downloading packages from factory"/> <progress id="downloading-packages" type="percentage" value="100" name="Downloading <progress id="downloading-packages" type="done" name=""/> stano, did you use zypper -v? Duncan, zypper -v is not an option. We need progress in the default output, but media callback is not usable for that - we don't want all the media traffic displayed. The best solution would be propagating the progress data from Downloaders to RepoManager::refreshMetadata() somehow and naming that progress data like "Downloading repository '%s' metadata.". Is it doable? downgrading. not critical *** Bug 309043 has been marked as a duplicate of this bug. *** Please, move the download progress from level -v to the default level. Why is YaST able to handle this but zypper not? (In reply to comment #7 from Stanislav Visnovsky) > Please, move the download progress from level -v to the default level. I wanted to avoid that - the output is flooded then by the metadata files, esp. patterns, patches and so... *very ugly* > Why is YaST able to handle this but zypper not? The answer is simple: YaST uses a single pop-up window to display the progress. This get overwritten for each file being downloaded. Doing this in the console is quite tricky and there was no time to do it properly so far. Other option for the console is one progress report per repository as suggested in comment #4. But that would require to include the progress of the individual file download into the combined progress of repository metadata download. Which is again not a trivial thing. Indeed, for 10.3 we are left with these two options: 1) either simply show the download progress of all files (move it from -v) => ugly 2) leave it as it is now, having -v as workaround (or a network traffic monitor) i don't know which one is uglier :O) Enabling the download callbacks before commit? That would solve the bug 309043, not this one. But yes i will do so. comment #8: imho, both kinds of progress report (lot of popups in yast, nothing in zypper) are wrong. Ever watched the screen flicker when you "add online repos" during installation ? Its _horrible_. I agree that output of all files names is _way_ too much for zypper, so please think about a 'leightweight' progress, i.e. a dot per file. Keeping it silent as its now is _not_ an option imho. (In reply to comment #11 from Klaus Kaempf) > I agree that output of all files names is _way_ too much for zypper, so please > think about a 'leightweight' progress, i.e. a dot per file. Keeping it silent > as its now is _not_ an option imho. I tried that approach a few weeks ago, but it doesn't really help: you get a lot of 'dots' for e.g. patterns (or patches), and then suddenly it seems stuck until the packages.gz file (or primary.xml.gz) gets downloaded :O( So the solution doesn't serve the intended purpose and creates an impression of a hang-up instead. After all the investigation, I'm very much for leaving the situation as it is now, and looking into it for openSUSE 11. Stano? Users still have the possibility to use -v option for now, or they can watch their network monitor applet to see if something is downloading. It's annoying, i know, i really wanted to get that fixed. But there was no time even to rethink the media back-end reporting working together with other stuff not to mention refactoring it in libzypp. And given current libzypp there are not much options for zypper to create its download progress output, and we have already run out of time to _hack_ on it to get as nice output as it gets. A proper, clean solution must be found after 10.3 is out. Please, leave the metadata download silent for 10.3. I implemented a 'still alive' notification for this for now. //! \todo better way to do this would be to propagate the download progress // all the way up from the media back-end through fetcher and downloader // into the RepoManager::refreshMetadata(), so that we get a combined percentage submitted |