Bug 1056400 - DNF not support url installation for a package
DNF not support url installation for a package
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: dnf (Show other bugs)
20
All Linux
unspecified Severity medium
: ---
: ---
Assigned To: packaging-team-maint
Fedora Extras Quality Assurance
:
: 1049671 1058980 1060166 1070441 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-22 00:55 EST by Praveen Kumar
Modified: 2014-02-27 07:58 EST (History)
14 users (show)

See Also:
Fixed In Version: dnf-0.4.13-2.fc20
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-02-08 22:54:40 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Praveen Kumar 2014-01-22 00:55:41 EST
Description of problem:
DNF is not support url rpm installation as yum supports.

Version-Release number of selected component (if applicable):
dnf-0:0.4.11-1.fc20.noarch

How reproducible:
dnf install http://kojipkgs.fedoraproject.org//packages/python-flask-sqlalchemy/1.0/2.fc20/noarch/python-flask-sqlalchemy-1.0-2.fc20.noarch.rpm


Actual results:
Error: Nothing to do.

Expected results:
It's should fetch the rpm and install it after resolving the dependencies.
Comment 1 Ales Kozumplik 2014-01-22 01:06:32 EST
Praveen, just to confirm, what does 'rpm -q python-flask-sqlalchemy' return?
Comment 2 Ales Kozumplik 2014-01-22 01:07:53 EST
Maybe related to bug 1049671, Radek please take a look once the time permits.
Comment 3 Zdeněk Pavlas 2014-01-22 03:13:01 EST
Fixes the bug for me..


commit 024f83a65a434efe8d669aa3de800e91ac6e9969
Author: Zdenek Pavlas <zpavlas@redhat.com>
Date:   Wed Jan 22 09:12:18 2014 +0100

    Installing a local pkg is okay. (RhBug#1056400)

diff --git a/dnf/cli/cli.py b/dnf/cli/cli.py
index 16ba6c2..5ca258c 100644
--- a/dnf/cli/cli.py
+++ b/dnf/cli/cli.py
@@ -322,6 +322,7 @@ class BaseCli(dnf.Base):
         for arg in userlist:
             if arg.endswith('.rpm'):
                 self.install_local(arg)
+                done = True
                 continue # it was something on disk and it ended in rpm
                          # no matter what we don't go looking at repos
             elif arg.startswith('@'):
Comment 4 Zdeněk Pavlas 2014-01-22 05:32:49 EST
Reproduces even when pkg is not installed..
Comment 5 Praveen Kumar 2014-01-22 22:35:35 EST
It's different from #1049671 ( which claims that local downloaded package not able to install) , In this bug if 'python-flask-sqlalchemy' don't present locally then it's suppose to download with give url and store in some tmp location as yum use to do and then install.
Comment 6 Ales Kozumplik 2014-01-24 03:44:32 EST
moving this to Zdenek who's got a patch.
Comment 7 Ales Kozumplik 2014-01-24 03:49:25 EST
*** Bug 1049671 has been marked as a duplicate of this bug. ***
Comment 8 Ales Kozumplik 2014-01-29 07:33:15 EST
*** Bug 1058980 has been marked as a duplicate of this bug. ***
Comment 9 Zdeněk Pavlas 2014-01-29 08:37:08 EST
The patch is merged upstream.
Comment 10 Ales Kozumplik 2014-01-31 07:13:46 EST
*** Bug 1060166 has been marked as a duplicate of this bug. ***
Comment 12 Fedora Update System 2014-02-07 01:44:07 EST
dnf-0.4.13-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/dnf-0.4.13-2.fc20
Comment 13 Fedora Update System 2014-02-08 00:08:01 EST
Package dnf-0.4.13-2.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.4.13-2.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-2172/dnf-0.4.13-2.fc20
then log in and leave karma (feedback).
Comment 14 Fedora Update System 2014-02-08 22:54:40 EST
dnf-0.4.13-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 15 Álvaro Castillo 2014-02-09 19:29:03 EST
That's works. Solved.

Thank you!
Comment 16 Radek Holy 2014-02-27 07:58:22 EST
*** Bug 1070441 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.