From: Russ Allbery
Date: Wed, 30 Jun 2010 18:16:23 +0000 (-0700)
Subject: Forbid dpkg-divert --local in package maintainer scripts
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=75602de7c34fec0ad8c99c64a674ce79d1ae6d90;p=debian%2Fdebian-policy.git
Forbid dpkg-divert --local in package maintainer scripts
State that package maintainer scripts must use --package and must
not use --local when invoking dpkg-divert.
---
diff --git a/policy.sgml b/policy.sgml
index 9fe7158..587a6b2 100644
--- a/policy.sgml
+++ b/policy.sgml
@@ -1214,9 +1214,11 @@
- You should not use dpkg-divert on a file
- belonging to another package without consulting the
- maintainer of that package first.
+ You should not use dpkg-divert on a file belonging
+ to another package without consulting the maintainer of that
+ package first. Package maintainer scripts must provide
+ the --package flag to dpkg-divert and must
+ not use --local.