Bug 438868

Summary: pk-install-file requires network access to install local files
Product: [Fedora] Fedora Reporter: Jeremy Katz <katzj>
Component: PackageKitAssignee: Robin Norwood <robin.norwood>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: richard, tim.lauridsen
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: NeedsRetesting
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-03 01:59:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 441857    

Description Jeremy Katz 2008-03-25 17:35:20 UTC
If installing a package off of local media when you don't have a network
available, you get a nice long traceback rather than a nice error message.  And
given that the package's dependencies are fulfilled with what is resolved, it
probably shouldn't even require the repos to be up.

Comment 1 Richard Hughes 2008-03-26 00:20:38 UTC
Agreed. What was the traceback? Thanks.

Comment 3 Richard Hughes 2008-03-30 16:42:31 UTC
This should work with 0.1.10 - can you please confirm or re-open this bug. Thanks.

Comment 4 Jeremy Katz 2008-04-11 14:16:57 UTC
It doesn't traceback now, but it still doesn't let me install packages.  I get a
dialog that says "No network connection available" (etc, etc).  But the fact
that there's no network connection is irrelevant to installing a local package
which has all of its deps already satisfied

Comment 5 Matthias Clasen 2008-04-13 02:29:31 UTC
I just tried with system-install-packages, and it successfully installed a local
package without network.

Comment 6 Richard Hughes 2008-04-13 10:10:37 UTC
Jeremy, can you try again with the latest package in rawhide please? Thanks.

Comment 7 Jeremy Katz 2008-04-15 02:42:40 UTC
Still fails for me.  Booted and never had network available.  Then I click on
the package that's on my USB key (that has the firmware for my wireless card, so
that I can _get_ a network connection) and I still get the network error.

If I plug in the network and let repo bits get downloaded and then take down the
network, it's fine.

Comment 8 Richard Hughes 2008-04-18 11:57:06 UTC
Robin, do you want that fix you committed cherry-picked to stable?

Comment 9 Robin Norwood 2008-04-18 14:56:11 UTC
Not yet, it isn't fixed yet, after all.  I'm working on it more today.

Comment 10 Robin Norwood 2008-04-23 14:50:14 UTC
Ok, I'm done poking with the install-file command - this bug should be fixed, as
well as giving better error messaging when things do go awry.


Comment 11 Bill Nottingham 2008-04-30 18:29:47 UTC
Is there a particular build that has this fix?

Comment 12 Robin Norwood 2008-05-01 14:37:05 UTC
This should be fixed in the rawhide versions now
(PackageKit-0:0.1.12-7.20080425.fc9.i386 and greater, for instance)