Bug 1330840

Summary: dnf can not survive wrong package name
Product: [Fedora] Fedora Reporter: Murphy Zhou <xzhou>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 23CC: jsilhan, mluscon, packaging-team-maint, pnemade, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-27 07:32:24 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:

Description Murphy Zhou 2016-04-27 06:32:24 UTC
Description of problem:

A wrong package name stops dnf going on to packages after the wrong name.

sh-4.3# dnf install -y xxa vim
Last metadata expiration check: 0:02:27 ago on Wed Apr 27 02:22:11 2016.
No package xxa available.
Error: Unable to find a match.


Version-Release number of selected component (if applicable):

sh-4.3# rpm -qi dnf
Name        : dnf
Version     : 1.1.8
Release     : 1.fc23
Architecture: noarch
Install Date: Tue 26 Apr 2016 10:07:31 PM EDT
Group       : Unspecified
Size        : 956735
License     : GPLv2+ and GPLv2 and GPL
Signature   : RSA/SHA256, Thu 07 Apr 2016 06:43:33 AM EDT, Key ID 32474cf834ec9cba
Source RPM  : dnf-1.1.8-1.fc23.src.rpm
Build Date  : Thu 07 Apr 2016 03:30:55 AM EDT
Build Host  : buildvm-22.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : https://github.com/rpm-software-management/dnf
Summary     : Package manager forked from Yum, using libsolv as a dependency resolver
Description :
Package manager forked from Yum, using libsolv as a dependency resolver.
sh-4.3# cat /etc/redhat-release 
Fedora release 23 (Twenty Three)
sh-4.3# 



How reproducible:
Always

Steps to Reproduce:
1. dnf install -y xxa vim
2.
3.

Actual results:

No package xxa available.
Error: Unable to find a match.

Expected results:

tell me xxa is unavaiable and vim is already installed or install vim for me.

Additional info:

Comment 1 Michael Mráka 2016-04-27 07:32:24 UTC
This is default dnf behaviour.

If you want dnf to skip such package names put strict=false either to your config file or command line (dnf --setopt strict=false install -y xxa vim).