|
Bugzilla – Full Text Bug Listing |
| Summary: | yast2 sw_single doesn't manage changes in repos gracefully | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Kevin Coonan <kevin.coonan> |
| Component: | YaST2 | Assignee: | E-mail List <yast2-maintainers> |
| Status: | RESOLVED INVALID | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Normal | ||
| Priority: | P5 - None | ||
| Version: | Current | ||
| Target Milestone: | --- | ||
| Hardware: | x86-64 | ||
| OS: | openSUSE Tumbleweed | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Kevin Coonan
2023-04-12 23:54:44 UTC
You didn't think that to the end. Sure, we *could* refresh the repos during package installation (and BTW that's all in libzypp, not in the YaST part). And then what? When all of a sudden there is a new libfoo-42.0, but the previously installed application foome-7.0 is now no longer compatible with it, then what? Then we start that whole dependency problem reporting etc. process again? Asking the user again which one of two or three equally solutions he'd prefer? No; that doesn't work. The package installation needs to be a transaction; during that time, the repo may not change. Yes, that can be bad especially with Tumbleweed (and no, in Leap or SLE that happens rarely or not at all). If we can't rely on that, the whole concept of dependency management falls apart. Yes, with Tumbleweed that may happen; that's one of the major downsides of a rolling release. The best way to avoid that is this sequence: sudo zypper refresh sudo zypper dup -y --download-only sudo zypper dup -y --download-only sudo zypper dup -y This downloads the changed packages in advance, and it does it twice because something may have changed between the lengthy first download process. The second one should be very quick. And then the downloaded packages are installed which hopefully doesn't take so long that more packages are updated in the repo again. To be very sure that this isn't the case, I usually do a final sudo zypper refresh sudo zypper dup (In reply to Stefan Hundhammer from comment #1) > Asking the user again which one of two or three equally solutions equally bad > he'd prefer? BTW it's not an option to try installing the previous package versions that the whole dependency resolution was based on; and that's a very Tumbleweed-specific problem: TW does not keep any older versions around, it only has ONE version of each package. If that sounds like a downside of TW to you, I fully agree; but that would be something you'd have to discuss with the TW maintainers. |