Bug#571116: debsums: overwrites /etc/apt.conf.d/90debsums without asking

2010-03-14 Thread Prach Pongpanich
tags 57116 patch
thanks

I 've prepared a patch for this attached.



Regards

-- 
ปรัชญ์ พงษ์พานิช

Prach Pongpanich

http://prach-public.blogspot.com
diff -Nru debsums-2.0.48/debian/90debsums debsums-2.0.48.1/debian/90debsums
--- debsums-2.0.48/debian/90debsums	1970-01-01 07:00:00.0 +0700
+++ debsums-2.0.48.1/debian/90debsums	2010-03-14 17:30:00.0 +0700
@@ -0,0 +1 @@
+DPkg::Post-Invoke { if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives; fi; };
diff -Nru debsums-2.0.48/debian/changelog debsums-2.0.48.1/debian/changelog
--- debsums-2.0.48/debian/changelog	2009-12-21 05:01:26.0 +0700
+++ debsums-2.0.48.1/debian/changelog	2010-03-14 18:50:41.0 +0700
@@ -1,3 +1,10 @@
+debsums (2.0.48.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * fix overwrites /etc/apt.conf.d/90debsums without asking
+(Closes: 571116)
+ -- Prach Pongpanich prach...@gmail.com  Sun, 14 Mar 2010 18:50:10 +0700
+
 debsums (2.0.48) unstable; urgency=low
 
   * reword the --ignore-permissions documentation to say that it makes
diff -Nru debsums-2.0.48/debian/lintian-overrides debsums-2.0.48.1/debian/lintian-overrides
--- debsums-2.0.48/debian/lintian-overrides	2009-12-21 05:01:26.0 +0700
+++ debsums-2.0.48.1/debian/lintian-overrides	1970-01-01 07:00:00.0 +0700
@@ -1,2 +0,0 @@
-# That command path is in a generated config file, not in the postinst script
-debsums: command-with-path-in-maintainer-script postinst:25 /usr/bin/debsums
diff -Nru debsums-2.0.48/debian/po/cs.po debsums-2.0.48.1/debian/po/cs.po
--- debsums-2.0.48/debian/po/cs.po	2009-12-21 05:01:26.0 +0700
+++ debsums-2.0.48.1/debian/po/cs.po	2010-03-14 18:53:27.0 +0700
@@ -15,7 +15,7 @@
 msgstr 
 Project-Id-Version: debsums\n
 Report-Msgid-Bugs-To: debs...@packages.debian.org\n
-POT-Creation-Date: 2009-06-26 16:22+1200\n
+POT-Creation-Date: 2010-03-14 18:53+0700\n
 PO-Revision-Date: 2009-06-14 18:49+0200\n
 Last-Translator: Jan Outrata outr...@upcase.inf.upol.cz\n
 Language-Team: Czech debian-l10n-cz...@lists.debian.org\n
diff -Nru debsums-2.0.48/debian/po/da.po debsums-2.0.48.1/debian/po/da.po
--- debsums-2.0.48/debian/po/da.po	2009-12-21 05:01:26.0 +0700
+++ debsums-2.0.48.1/debian/po/da.po	2010-03-14 18:53:27.0 +0700
@@ -14,7 +14,7 @@
 msgstr 
 Project-Id-Version: debsums\n
 Report-Msgid-Bugs-To: debs...@packages.debian.org\n
-POT-Creation-Date: 2009-06-26 16:22+1200\n
+POT-Creation-Date: 2010-03-14 18:53+0700\n
 PO-Revision-Date: 2004-08-02 16:45+0200\n
 Last-Translator: Claus Hindsgaul clau...@image.dk\n
 Language-Team: Danish da...@klid.dk\n
diff -Nru debsums-2.0.48/debian/po/de.po debsums-2.0.48.1/debian/po/de.po
--- debsums-2.0.48/debian/po/de.po	2009-12-21 05:01:26.0 +0700
+++ debsums-2.0.48.1/debian/po/de.po	2010-03-14 18:53:27.0 +0700
@@ -7,7 +7,7 @@
 msgstr 
 Project-Id-Version: debsums 2.0.39\n
 Report-Msgid-Bugs-To: debs...@packages.debian.org\n
-POT-Creation-Date: 2009-06-26 16:22+1200\n
+POT-Creation-Date: 2010-03-14 18:53+0700\n
 PO-Revision-Date: 2008-10-20 21:22+0200\n
 Last-Translator: Sven Joachim svenj...@gmx.de\n
 Language-Team: German debian-l10n-ger...@lists.debian.org\n
diff -Nru debsums-2.0.48/debian/po/es.po debsums-2.0.48.1/debian/po/es.po
--- debsums-2.0.48/debian/po/es.po	2009-12-21 05:01:26.0 +0700
+++ debsums-2.0.48.1/debian/po/es.po	2010-03-14 18:53:27.0 +0700
@@ -31,7 +31,7 @@
 msgstr 
 Project-Id-Version: debsums 2.0.39\n
 Report-Msgid-Bugs-To: debs...@packages.debian.org\n
-POT-Creation-Date: 2009-06-26 16:22+1200\n
+POT-Creation-Date: 2010-03-14 18:53+0700\n
 PO-Revision-Date: 2008-11-24 19:10+0100\n
 Last-Translator: Francisco Javier Cuadrado fcocuadr...@gmail.com\n
 Language-Team: Debian l10n spanish debian-l10n-span...@lists.debian.org\n
diff -Nru debsums-2.0.48/debian/po/fi.po debsums-2.0.48.1/debian/po/fi.po
--- debsums-2.0.48/debian/po/fi.po	2009-12-21 05:01:26.0 +0700
+++ debsums-2.0.48.1/debian/po/fi.po	2010-03-14 18:53:27.0 +0700
@@ -2,7 +2,7 @@
 msgstr 
 Project-Id-Version: debsums\n
 Report-Msgid-Bugs-To: debs...@packages.debian.org\n
-POT-Creation-Date: 2009-06-26 16:22+1200\n
+POT-Creation-Date: 2010-03-14 18:53+0700\n
 PO-Revision-Date: 2008-10-24 12:52+0200\n
 Last-Translator: Esko Arajärvi e...@iki.fi\n
 Language-Team: Finnish debian-l10n-finn...@lists.debian.org\n
diff -Nru debsums-2.0.48/debian/po/fr.po debsums-2.0.48.1/debian/po/fr.po
--- debsums-2.0.48/debian/po/fr.po	2009-12-21 05:01:26.0 +0700
+++ debsums-2.0.48.1/debian/po/fr.po	2010-03-14 18:53:27.0 +0700
@@ -9,7 +9,7 @@
 msgstr 
 Project-Id-Version: fr\n
 Report-Msgid-Bugs-To: debs...@packages.debian.org\n
-POT-Creation-Date: 2009-06-26 16:22+1200\n
+POT-Creation-Date: 2010-03-14 18:53+0700\n
 PO-Revision-Date: 2008-10-13 06:58+0200\n
 Last-Translator: Christian Perrier bubu...@debian.org\n
 Language-Team: French debian-l10n-fre...@lists.debian.org\n
diff -Nru 

Bug#571116: debsums: overwrites /etc/apt.conf.d/90debsums without asking

2010-02-23 Thread Bernhard R. Link
Package: debsums
Version: 2.0.48
Severity: serious

Policy 10.7.3 says
Configuration file handling must conform to the following behavior:
 * local changes must be preserved during a package upgrade, and

but debsums (re)creates or deletes /etc/apt/apt.conf.d/90debsums every time
it is installed, reinstalled or upgraded without asking the user.

It should:
- only ever overwrite the file if it is unchanged
  (or if it asked to do so)
- check if the files exists in the config script
  and store the current state in debconf before asking,
  otherwise it will revert a user deleting the file
  without asking with the next upgrade.

Thanks in advance,
Bernhard R. Link



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org