#27 Replace explicit Conflicts python34 < 3.4.9-3 with Obsoletes
Merged 3 months ago by churchyard. Opened 3 months ago by churchyard.
rpms/ churchyard/python36 obsolete  into  epel7

file modified
+10 -7

@@ -19,7 +19,7 @@ 

  %endif

  

  Version: %{pybasever}.6

- Release: 4%{?dist}

+ Release: 5%{?dist}

  License: Python

  

  

@@ -368,7 +368,7 @@ 

  

  %if 0%{?main_python3}

  # /usr/bin/python3 was moved from here:

- Conflicts: python34 < 3.4.9-3

+ Obsoletes: python34 < 3.4.9-3

  %endif

  

  # This prevents ALL subpackages built from this spec to require

@@ -405,7 +405,7 @@ 

  

  %if 0%{?main_python3}

  # libpython3.so was moved from here:

- Conflicts: python34-libs < 3.4.9-3

+ Obsoletes: python34-libs < 3.4.9-3

  %endif

  

  %description libs

@@ -435,9 +435,9 @@ 

  

  %if 0%{?main_python3}

  # /usr/bin/2to3-3 was moved from here:

- Conflicts: python34-tools < 3.4.9-3

+ Obsoletes: python34-tools < 3.4.9-3

  # /usr/bin/python3-config was moved from here:

- Conflicts: python34-devel < 3.4.9-3

+ Obsoletes: python34-devel < 3.4.9-3

  %endif

  

  %description devel

@@ -460,7 +460,7 @@ 

  

  %if 0%{?main_python3}

  # /usr/bin/idle3 was moved from here:

- Conflicts: python34-tools < 3.4.9-3

+ Obsoletes: python34-tools < 3.4.9-3

  %endif

  

  %description idle

@@ -513,7 +513,7 @@ 

  

  %if 0%{?main_python3}

  # /usr/bin/python3-debug was moved from here:

- Conflicts: python34-debug < 3.4.9-3

+ Obsoletes: python34-debug < 3.4.9-3

  %endif

  

  %description debug

@@ -1449,6 +1449,9 @@ 

  # ======================================================

  

  %changelog

+ * Thu Mar 28 2019 Miro Hrončok <mhroncok@redhat.com> - 3.6.6-5

+ - Replace explicit conflicts with python34 < 3.4.9-3 with obsoletes

+ 

  * Tue Mar 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.6.6-4

  - Add explicit conflicts with python34 < 3.4.9-3

  

Metadata Update from @churchyard:
- Request assigned

3 months ago

ok. I did a bunch of testing and I think this does indeed do what we want.

The case we need to handle is where someone has things that depend on /usr/bin/python3 and just does an update. We need python36 to be pulled in because the new python34 no longer provides /usr/bin/python3.
If there's things that still need python34, the new one will be pulled in. If there is not, it won't, but thats fine.

Here's an example with the python36 from this PR:

Dependencies Resolved

=========================================================================================================================
 Package                             Arch               Version                    Repository                       Size
=========================================================================================================================
Installing:
...
 python36                            x86_64             3.6.6-5.el7                kevins-epel-testing              65 k
     replacing  python34.x86_64 3.4.9-2.el7
 python36-libs                       x86_64             3.6.6-5.el7                kevins-epel-testing             8.5 M
     replacing  python34-libs.x86_64 3.4.9-2.el7
...
Updating for dependencies:
 python34                            x86_64             3.4.9-3.el7                epel-testing                     51 k
 python34-libs                       x86_64             3.4.9-3.el7                epel-testing                    8.3 M

So, I am +1 to merge this in and add it to the update...

Pull-Request has been merged by churchyard

3 months ago

Update edited to include this. Thanks @kevin.