To distro-sync or not distro-sync?
Will Woods
wwoods at redhat.com
Fri Oct 30 17:06:24 UTC 2015
On Thu, 2015-10-29 at 15:00 +0100, Vít Ondruch wrote:
> Dne 29.10.2015 v 13:24 Honza Šilhan napsal(a):
> > You can exclude the conflicting packages to proceed the system
> > -upgrade i.e.:
> > "dnf system-upgrade download --releasever=23 --distro-sync -x
> > rubygem-celluloid --allowerasing"
>
>
> Does the "-x" work actually? Last time I tried, the package I
> excluded
> was not downloaded (as expected), but after restart, the "-x" was not
> used and my system-upgrade failed (this was unexpected). These flags
> should be propagated and honored after restart, during the upgrade
> phase.
Actually, you're correct, the -x/--exclude settings are not currently
propagated to the upgrade. I filed an issue on github to track that:
https://github.com/rpm-software-management/dnf-plugin-system-upgrade/
issues/29
I *can* add that to the State object that dnf system-upgrade uses to
pass the --best/--allowerasing/etc. settings between the download and
the upgrade, but I think the best long-term solution is for DNF to
provide some .save()/.load() method(s) that will correctly save *all*
the relevant configuration and transaction bits, rather than trying to
figure all of this out on my own in an external plugin.
-w
More information about the devel
mailing list