|
Bugzilla – Full Text Bug Listing |
| Summary: | DVD + non-oss CD: Wrong package count when adding packages | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.0 | Reporter: | Andreas Vetter <vetter> |
| Component: | libzypp | Assignee: | Ladislav Slezák <lslezak> |
| Status: | RESOLVED FIXED | QA Contact: | Duncan Mac-Vicar <dmacvicar> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | asklein, boyd.memmott, dfabian, koenig, lslezak, ma |
| Version: | Alpha 2 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | y2logs | ||
|
Description
Andreas Vetter
2008-02-14 22:52:19 UTC
Created attachment 195029 [details]
y2logs
it seems to be problem of yast2-packager Um, that's strage, I found this in the log: Zypp says that there is 101 packages to install: 2008-02-14 23:05:41 <1> dobbler(5186) [zypp] TargetImpl.cc(commit):414 toInstall: 2008-02-14 23:05:41 <1> dobbler(5186) [zypp] TargetImpl.cc(commit):414 ResObjects: 113 2008-02-14 23:05:41 <1> dobbler(5186) [zypp] TargetImpl.cc(commit):414 package: 101 2008-02-14 23:05:41 <1> dobbler(5186) [zypp] TargetImpl.cc(commit):414 pattern: 12 Yast also counted 101 packages (1st + 2nd source: 79 + 22 = 101): 2008-02-14 23:05:38 <1> dobbler(5186) [Pkg] Package.cc(PkgMediaSizesOrCount):352 Pkg::PkgMediaCount result: [[79], [22]] But when I counted packages installed before media change requested I got 74. After changing the medium there were 27 packages installed. So all packages were installed correctly (74 + 27 = 101), but libzypp installed some packages from the second medium instead of the first one as it was planned. The install order requires these 5 packages to be installed after some packages from the second media were installed. Instead of jumping back to DVD1, these 5 packages are copied to a disk cache before switching to CD2. Later the installation does not require a media change. (count the packages provided before the media change request, not the ones installed). Future zypp releases will do even more caching, so the UI should not rely on any media change callbacks. AFAIK the package install callback provides a pointer to the package metadata, so the UI can check where the package originally came from. Reassigning to yast2-packager maintainer *** Bug 397911 has been marked as a duplicate of this bug. *** The problem was that the source medium was checked only in the download callback. I added the check also to the package installation callback, so when a package is installed from a different source than the last downloaded package the source changed callback is evaluated. Fixed in yast2-pkg-bindings-2.17.19. *** Bug 416295 has been marked as a duplicate of this bug. *** *** Bug 402891 has been marked as a duplicate of this bug. *** |