Bug 848012

Summary: pkcon download silently overwrites existing file
Product: Red Hat Enterprise Linux 7 Reporter: Vladimir Benes <vbenes>
Component: PackageKitAssignee: Richard Hughes <rhughes>
Status: CLOSED CURRENTRELEASE QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0   
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-07 11:10:47 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:
Embargoed:

Description Vladimir Benes 2012-08-14 10:11:11 UTC
Description of problem:
when downloading into /tmp dir for example with the same package name already in there should be warning that I am overwriting something and not overwrite done automatically.

Version-Release number of selected component (if applicable):
PackageKit-0.7.4-5.el7

How reproducible:
always

Steps to Reproduce:
1.execute rpm -q mc
2.create rpm like this in /tmp with AAA content (echo "AAAA" > mc-....)
3.execute pkmon download /tmp mc
  
Actual results:
original AAA file overwritten to rpm 

Expected results:
user should be asked if overwrite is OK

Additional info:

Comment 2 Richard Hughes 2013-05-07 11:10:47 UTC
We now do this:

Fatal error: file /tmp/dbus-devel-1.6.8-5.fc19.x86_64.rpm already exists

Thanks for reporting this bug.