Bug#218897: Explicitily disallow adding local diversion by package
Raphael Geissert <geissert@debian.org> writes:
> I think it should be more clear and mention that --package must be used
> when adding or removing diversions. --list{,name} and --truename don't
> require --package.
Good point. Here's an updated patch.
diff --git a/policy.sgml b/policy.sgml
index 9fe7158..c7f2a4e 100644
--- a/policy.sgml
+++ b/policy.sgml
@@ -1214,9 +1214,11 @@
</p>
<p>
- You should not use <prgn>dpkg-divert</prgn> on a file
- belonging to another package without consulting the
- maintainer of that package first.
+ You should not use <prgn>dpkg-divert</prgn> on a file belonging
+ to another package without consulting the maintainer of that
+ package first. When adding or removing diversions, package
+ maintainer scripts must provide the <tt>--package</tt> flag
+ to <prgn>dpkg-divert</prgn> and must not use <tt>--local</tt>.
</p>
<p>
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: