Bug 2224696

Summary: nodejs-npm obsolete obsoletes a provides instead of a package name
Product: [Fedora] Fedora Reporter: Mattias Ellert <mattias.ellert>
Component: nodejs18Assignee: Stephen Gallagher <sgallagh>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: sgallagh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mattias Ellert 2023-07-22 06:46:16 UTC
# rpm -q nodejs-npm
nodejs-npm-9.5.1-1.18.16.1.1.fc38.x86_64
# rpm -q --obsoletes nodejs-npm
npm < 1:9.5.1-1.20

This obsolete obsoletes a provides and therefore has no effect.
Obsoletes only works for package names.

Please change this to:

Obsoletes: nodejs20-npm < 1:9.5.1-1.20


Reproducible: Always

Steps to Reproduce:
1. mock --root fedora-38-x86_64 --init
2. mock --root fedora-38-x86_64 --install npm

Actual Results:  
nodejs20-npm-1:9.5.1-1.19.8.1.7.fc38.x86_64 is installed

Expected Results:  
nodejs-npm-9.5.1-1.18.16.1.1.fc38.x86_64 is installed