RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 848012 - pkcon download silently overwrites existing file
Summary: pkcon download silently overwrites existing file
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: PackageKit
Version: 7.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Richard Hughes
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-14 10:11 UTC by Vladimir Benes
Modified: 2013-05-07 11:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-07 11:10:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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