[Piuparts-devel] [Git][debian/piuparts][develop] 2 commits: obsolete_conffiles.mail file

Holger Levsen gitlab at salsa.debian.org
Wed Jul 10 16:49:05 BST 2019



Holger Levsen pushed to branch develop at Debian / piuparts


Commits:
56775e4b by Herbert Parentes Fortes Neto at 2019-07-10T15:48:14Z
obsolete_conffiles.mail file

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -
75a0b62b by Holger Levsen at 2019-07-10T15:48:50Z
add d/changelog entry for Herbert

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- + bug-templates/obsolete_conffiles.mail
- debian/changelog


Changes:

=====================================
bug-templates/obsolete_conffiles.mail
=====================================
@@ -0,0 +1,66 @@
+To: submit at bugs.debian.org
+Subject: obsolete conffiles (policy 10.7.3):
+
+Package:
+Version:
+Severity: important
+User: debian-qa at lists.debian.org
+Usertags: piuparts
+
+Hi,
+
+during a test with piuparts I noticed your package has obsolete
+conffiles.
+
+To see the policy statement,
+https://www.debian.org/doc/debian-policy/ch-files.html#behavior
+
+10.7.3: "[...] Obsolete configuration files without local changes
+should be removed by the package during upgrade.[11]"
+
+[11] The dpkg-maintscript-helper tool, available from the dpkg
+package, can help for this task.
+
+Quotes from manpage:
+
+"
+[...]
+If the conffile has not been shipped for several versions, and you
+are now modifying the maintainer scripts to clean up the obsolete
+file, prior-version should be based on the version of the package
+that you are now preparing, not the first version of  the  package
+that lacked the conffile. This applies to all other actions in the
+same way.
+
+For example, for a conffile removed in version 2.0-1 of a package,
+prior-version should be set to 2.0-1~. This will cause the conffile
+to be removed even if the user rebuilt the previous version 1.0-1
+as 1.0-1local1. Or a package switching a path from a symlink (shipped
+in version 1.0-1) to a directory (shipped in version 2.0-1), but only
+performing the actual switch in the maintainer scripts in version
+3.0-1, should set prior-version to 3.0-1~.
+[...]
+"
+
+The debian/deb_package.maintscript file should look like this:
+
+rm_conffile /path/to/the/obsolete_conffile X.X-X~
+
+Please read the manpage for details.
+
+Attached you will find a compressed log file. To find the line 
+in the log file look for "OBSOLETE CONFFILE". Here are the line(s)
+in package_version_log_file:
+
+OBSOLETE CONFFILE /path/to/file REGISTERED BY srptools
+
+
+See also https://wiki.debian.org/DpkgConffileHandling
+
+There may be false positives, e.g. if a conffile was converted
+to a maintainer script managed configuration file.
+
+
+
+
+cheers,


=====================================
debian/changelog
=====================================
@@ -2,9 +2,10 @@ piuparts (1.0.2) UNRELEASED; urgency=medium
 
   [ Herbert Parentes Fortes Neto ]
   * piuparts.py: use Popen with universal_newlines=True. Py2, Py3 compatible.
+  * New mail template: add bug-templates/obsolete_conffiles.mail.
 
   [ Holger Levsen ]
-  * Bump standards version to 4.4.0, no changes needed.
+  * Bump standards version to 4.4.0, no changes needed. 
 
  -- Holger Levsen <holger at debian.org>  Sun, 07 Jul 2019 17:15:41 +0200
 



View it on GitLab: https://salsa.debian.org/debian/piuparts/compare/1ee9902312ba49ff7eee836af5f5cc6d1cd68da8...75a0b62b9f4aa09387c177ca3b6f25952ab396aa

-- 
View it on GitLab: https://salsa.debian.org/debian/piuparts/compare/1ee9902312ba49ff7eee836af5f5cc6d1cd68da8...75a0b62b9f4aa09387c177ca3b6f25952ab396aa
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20190710/fcdbe88b/attachment-0001.html>


More information about the Piuparts-devel mailing list