|
Bugzilla – Full Text Bug Listing |
| Summary: | make zypper dup error out if more than one repository exists | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.0 | Reporter: | Dirk Mueller <dmueller> |
| Component: | libzypp | Assignee: | E-mail List <zypp-maintainers> |
| Status: | RESOLVED INVALID | QA Contact: | Duncan Mac-Vicar <dmacvicar> |
| Severity: | Enhancement | ||
| Priority: | P2 - High | CC: | coolo, locilka, lslezak, markus.kossmann, mls |
| Version: | Beta 1 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | Development | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Dirk Mueller
2008-05-02 11:53:27 UTC
*** Bug 388956 has been marked as a duplicate of this bug. *** (In reply to comment #0 from Dirk Mueller) > I've just learned over lunch that calling "zypper dup" is wrong if you have > both buildservice repositories and a distribution repository enabled. > > apparently one has to call it with -r <name>, where <name> points to the > distribution one wants to upgrade to, and the other repositories (e.g. > buildservice addons) must not be dup'ed, but only updated via update -t > package. I've verified that this indeed fixes the "reinstalling/downgrading > package" issues everyone seems to be complaining about. Hm. If that is so, this feature is really important :O) Just a side question: how does installation handle this (if at all)? > It would be nice if zypp/zypper could detect this situation and advise the > user, or alternatively do the right thing automatically. > > I'm not sure if channels of distributions (e.g. the factory channel, or a > future openSUSE 11.0 channel) can be detected in some way.. if it does, then it Currently they can't, we need to add means of such identification (as well as identification of update repos). > could automatically add the -r argument if there is only one distribution > channel enabled, and altneratively error out if more than one distribution > channel is in the sources list and no -r argument was given. yup, sounds good Installation/Upgrade has the installation repository registered as the fist one, then Add-Ons or other repositories can be added or enabled. Upgrade doesn't handle how the packages are selected to be upgraded, it just calls solver. OK, some packages are dropped by installation by default :) See bug #300540. the main difference: it's pretty unusual to have 13 repos during distribution update with very comparable versions. While it's not to for zypper dup. BTW: another difference: installations sets YAST_IS_RUNNING=instsys, which some packages cause not to produce errors on updates. This might be good for dup, but bad for update Moved to feature 305553 This bug is completely invalid. It is a valid use case to have multiple repositories enabled when calling zypper dup. Damn, I did a feature out of it :-( You shouldn't mix repositories, though. Could your CPEIDs be used to generate a warning in those cases? Yes, but there are no repositories using the cpeids yet. But will add that to the feature. |