dpkg-maintscript-helper 'mv_conffile' fails if target doesn't already exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The 'mv_conffile' function only works if the target file exists by the postinst stage.
This means the function doesn't support those packages where the new configuration file is optional and may not exist at postinst stage.
The case in point is 'iptables-
A simple guard in front of the 'mv' command would add support.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: dpkg 1.16.1.2ubuntu7
ProcVersionSign
Uname: Linux 3.2.0-23-virtual x86_64
ApportVersion: 2.0.1-0ubuntu5
Architecture: amd64
Date: Thu Apr 19 09:28:11 2012
SourcePackage: dpkg
UpgradeStatus: No upgrade log present (probably fresh install)
The attachment "dpkg-maintscri pt-helper. patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]