Bug 1202794

Summary: dnf distro-sync -x misbehaves
Product: [Fedora] Fedora Reporter: Daniel Mach <dmach>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-17 16:48:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
debugdata for the same analysis as in https://bugzilla.redhat.com/show_bug.cgi?id=1099342#c20 none

Description Daniel Mach 2015-03-17 12:59:07 UTC
on f21 I ran:
dnf distro-sync --releasever=22 -x python-django
it ended up with an error that python-django cannot be installed

following approach worked:
dnf distro-sync --releasever=22
dnf downgrade --releasever=21 python-django

-> deps are ok, no reason why the first use case should fail

I think there's something wrong with excluding packages in distro-sync.

Comment 1 Radek Holy 2015-03-17 14:00:32 UTC
Hello. I can only guess since you did not provide the debugging data (https://github.com/rpm-software-management/dnf/wiki/Bug-Reporting#depsolving-problem) but on my machine, python-django strictly requires the same version of python-django-bash-completion. "dnf -x python-django --releasever=22 distro-sync" means: "synchronize everything except python-django" which includes "python-django-bash-completion". But the bash completion package cannot be removed since it is required by the exceptional "python-django". So, your request is contradictory and thus you see the expected behavior.

Can I close this as NOTABUG or would you like to transform this report into a request for a new command/switch?

Comment 2 Daniel Mach 2015-03-17 14:24:27 UTC
I over-simplified the example, sorry :)
I excluded both python-django and python-django-bash-completion.

I still think it's a bug.

Comment 3 Radek Holy 2015-03-17 16:47:04 UTC
Created attachment 1002876 [details]
debugdata for the same analysis as in https://bugzilla.redhat.com/show_bug.cgi?id=1099342#c20

OK, then I think that this is a duplicate of bug 1099342 since the analysis made in https://bugzilla.redhat.com/show_bug.cgi?id=1099342#c20 had similar results in this case.

Comment 4 Radek Holy 2015-03-17 16:48:07 UTC

*** This bug has been marked as a duplicate of bug 1099342 ***