]> git.donarmstrong.com Git - debian/debian-policy.git/commitdiff
Forbid dpkg-divert --local in package maintainer scripts
authorRuss Allbery <rra@debian.org>
Wed, 30 Jun 2010 18:16:23 +0000 (11:16 -0700)
committerRuss Allbery <rra@debian.org>
Wed, 30 Jun 2010 18:16:23 +0000 (11:16 -0700)
State that package maintainer scripts must use --package and must
not use --local when invoking dpkg-divert.

policy.sgml

index 9fe7158f215f5fe8381f4aac8be87aa9f430be25..587a6b29be5bf8bb5aaa89d81c7f6d2df25650ae 100644 (file)
        </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.  Package maintainer scripts must provide
+         the <tt>--package</tt> flag to <prgn>dpkg-divert</prgn> and must
+         not use <tt>--local</tt>.
        </p>
 
        <p>