dpkg-divert: --add --rename --package shouldn't rename if owned by package

Bug #983187 reported by Adam Conrad
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dpkg
Fix Released
Unknown
dpkg (Ubuntu)
Fix Released
Medium
Colin Watson
Precise
Won't Fix
Undecided
Colin Watson

Bug Description

When calling dpkg-divert --add --rename --package <package>, the file being diverted is renamed regardless of owner. If the file is owned by <package>, it really shouldn't be moved at all, but the diversion just added to the DB without any file ops.

Revision history for this message
Steve Langasek (vorlon) wrote :

This is only of medium importance, but we should really try to get it done before 12.04.0 since it has long-ranging implications for LTS upgrades if we don't get it fixed and if we have another issue like the libc6-i386/libc6:i386 linker conflict in the future.

Changed in dpkg (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
tags: added: rls-p-tracking
Changed in dpkg:
status: Unknown → New
Revision history for this message
Colin Watson (cjwatson) wrote :

I've sent a patch to the linked Debian bug. While I appreciate the urgency on this, I'd really prefer it to be acked upstream first; I'm not comfortable with shoving my patch in without review.

Changed in dpkg (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
Changed in dpkg:
status: New → Fix Released
Revision history for this message
Adam Conrad (adconrad) wrote :

This was fixed in dpkg in Quantal with the merge of 1.16.3, however I've opened a Precise task since I suspect we might want to backport this before 12.04.1, so we can hand-wavingly rely on this for LTS->LTS upgrades. Maybe.

Changed in dpkg (Ubuntu):
status: Triaged → Fix Released
Changed in dpkg (Ubuntu Precise):
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Adam Conrad (adconrad) wrote :

No point fixing this in precise anymore, closing that task.

Changed in dpkg (Ubuntu Precise):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.