Your message dated Thu, 27 Oct 2011 17:47:13 +0000
with message-id <[email protected]>
and subject line Bug#645303: fixed in emacs-goodies-el 35.2
has caused the Debian Bug report #645303,
regarding dpkg-dev-el: Allow customization of allowed distributions
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
645303: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=645303
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dpkg-dev-el
Version: 35.1
Severity: wishlist
Tags: patch

Hi,

I'm quite often generating Debian packages for local use only, or for
clients.  These packages eventually end up in APT repositories different
than the Debian ones, so the "distribution" field in their changelog has
different constraints.  I would therefore like its allowed values to be
customizable, and I propose a defcustom to be added, and the defun to be
changed to something like the following:

$ diff -u /usr/share/emacs/site-lisp/dpkg-dev-el/debian-changelog-mode.el 
~/lib/lisp/
--- /usr/share/emacs/site-lisp/dpkg-dev-el/debian-changelog-mode.el     
2010-07-28 17:37:24.000000000 +0200
+++ /home/roland/lib/lisp//debian-changelog-mode.el     2011-10-14 
10:34:14.658731919 +0200
@@ -386,6 +386,19 @@
   :group 'debian-changelog
   :type 'string)
 
+(defcustom debian-changelog-allowed-distributions
+  '("unstable"
+    "testing"
+    "testing-security"
+    "stable" 
+    "stable-security" 
+    "oldstable-security" 
+    "experimental" 
+    "UNRELEASED" )
+  "*Allowed values for distribution."
+  :group 'debian-changelog
+  :type '(repeat string))
+
 (defcustom debian-changelog-local-variables-maybe-remove t
   "*Ask to remove obsolete \"Local Variables:\" block from changelog.
 This is done only under certain conditions."
@@ -880,14 +893,7 @@
       (error (substitute-command-keys "most recent version has been finalised 
- use \\[debian-changelog-unfinalise-last-version] or 
\\[debian-changelog-add-version]")))
   (let ((str (completing-read
               "Select distribution: "
-              '(("unstable" 1)
-                ("testing" 2)
-                ("testing-security" 3)
-                ("stable" 4)
-                ("stable-security" 5)
-                ("oldstable-security" 6)
-                ("experimental" 7)
-                ("UNRELEASED" 8))
+             debian-changelog-allowed-distributions
               nil t nil)))
     (if (not (equal str ""))
        (debian-changelog-setdistribution str))))

This patch doesn't touch the generation of the menus (where the
distribution list is still hardcoded), nor the default distribution for
new versions (which is still either unstable or UNRELEASED depending on
the last version), but it should be a good start.

For context, and for anyone who might be interested: my .emacs registers
lld-set-debian-changelog-mailing-address and
lld-set-debian-changelog-allowed-distributions into
debian-changelog-mode-hook, with these functions defined as follows:

,----
| (defun lld-set-debian-changelog-mailing-address ()
|   (when (string-match "/home/roland/gnurandal/.*/debian/changelog" 
buffer-file-name)
|     (make-variable-buffer-local 'debian-changelog-mailing-address)
|     (setq debian-changelog-mailing-address "[email protected]")
|     )
|   )
| 
| (defun lld-set-debian-changelog-allowed-distributions ()
|   (when (string-match "/home/roland/gnurandal/.*/debian/changelog" 
buffer-file-name)
|     (make-variable-buffer-local 'debian-changelog-allowed-distributions)
|     (when (string-match 
"/home/roland/gnurandal/.*/client1/.*/debian/changelog" buffer-file-name)
|       (setq debian-changelog-allowed-distributions '("client1")))
|     (when (string-match 
"/home/roland/gnurandal/.*/client2/.*/debian/changelog" buffer-file-name)
|       (setq debian-changelog-allowed-distributions '("client2")))
|     (when (string-match 
"/home/roland/gnurandal/.*/client3/.*/debian/changelog" buffer-file-name)
|       (setq debian-changelog-allowed-distributions '("client3")))
|     (when (string-match 
"/home/roland/gnurandal/.*/client4/.*/debian/changelog" buffer-file-name)
|       (setq debian-changelog-allowed-distributions '("client4")))
|     )
|   )
`----

…so when I work on a Debian package stored in the part of my $HOME that
I use for work, the email address and the distributions are
automatically adjusted.

Roland.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-2-686-pae (SMP w/1 CPU core)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dpkg-dev-el depends on:
ii  debian-el          35.1      
ii  emacs [emacsen]    23.3+1-1.1
ii  emacs23 [emacsen]  23.3+1-1.1

Versions of packages dpkg-dev-el recommends:
ii  wget  1.13-1

Versions of packages dpkg-dev-el suggests:
ii  dpkg-dev  1.16.1

-- no debconf information

-- 
Roland Mas

Mou ichido !  Hayaku !  Ookii koede !
  -- Atsuko Sasaki



--- End Message ---
--- Begin Message ---
Source: emacs-goodies-el
Source-Version: 35.2

We believe that the bug you reported is fixed in the latest version of
emacs-goodies-el, which is due to be installed in the Debian FTP archive:

debian-el_35.2_all.deb
  to main/e/emacs-goodies-el/debian-el_35.2_all.deb
devscripts-el_35.2_all.deb
  to main/e/emacs-goodies-el/devscripts-el_35.2_all.deb
dpkg-dev-el_35.2_all.deb
  to main/e/emacs-goodies-el/dpkg-dev-el_35.2_all.deb
emacs-goodies-el_35.2.dsc
  to main/e/emacs-goodies-el/emacs-goodies-el_35.2.dsc
emacs-goodies-el_35.2.tar.gz
  to main/e/emacs-goodies-el/emacs-goodies-el_35.2.tar.gz
emacs-goodies-el_35.2_all.deb
  to main/e/emacs-goodies-el/emacs-goodies-el_35.2_all.deb
gnus-bonus-el_35.2_all.deb
  to main/e/emacs-goodies-el/gnus-bonus-el_35.2_all.deb
vm-bonus-el_35.2_all.deb
  to main/e/emacs-goodies-el/vm-bonus-el_35.2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Peter S Galbraith <[email protected]> (supplier of updated emacs-goodies-el 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 27 Oct 2011 13:30:01 -0400
Source: emacs-goodies-el
Binary: emacs-goodies-el gnus-bonus-el devscripts-el debian-el dpkg-dev-el 
vm-bonus-el
Architecture: source all
Version: 35.2
Distribution: unstable
Urgency: low
Maintainer: Peter S Galbraith <[email protected]>
Changed-By: Peter S Galbraith <[email protected]>
Description: 
 debian-el  - Emacs helpers specific to Debian users
 devscripts-el - Emacs wrappers for the commands in devscripts
 dpkg-dev-el - Emacs helpers specific to Debian development
 emacs-goodies-el - Miscellaneous add-ons for Emacs
 gnus-bonus-el - Miscellaneous add-ons for Gnus
 vm-bonus-el - vm-bogofilter add-on for VM
Closes: 645303
Changes: 
 emacs-goodies-el (35.2) unstable; urgency=low
 .
   [ Roland Mas ]
   * dpkg-dev-el:
   - debian-changelog-mode.el: Allow customization of allowed distributions
     (Closes: #645303).
Checksums-Sha1: 
 6777c276f8ec796a8e66475f255e1457b6d04c94 1650 emacs-goodies-el_35.2.dsc
 29c49eff2206ff7db42b4cc697250776d440bca7 1078196 emacs-goodies-el_35.2.tar.gz
 683f3b93557b263e3749807c34be7dbbd7c181a2 848438 emacs-goodies-el_35.2_all.deb
 85d1b4718cfd5d1e3887c6bfbae7b8bedde96298 82522 gnus-bonus-el_35.2_all.deb
 4ed450d1cddfa9564c15b7f87dbf3d1b29319eb3 41948 devscripts-el_35.2_all.deb
 34346566b6bcf67e7c29fe890cd61277c9f3ccca 104026 debian-el_35.2_all.deb
 ac5cc53c33a58112b0aef0891647db817d574d63 75536 dpkg-dev-el_35.2_all.deb
 6508fff8eb85c94a3eccc27f691cf6111f5a795c 43816 vm-bonus-el_35.2_all.deb
Checksums-Sha256: 
 fbf6f2a67ab43d3b6ad8f09887b9737c594014710920d2122751e7b86b1da9cc 1650 
emacs-goodies-el_35.2.dsc
 78e0584a76eb6eb80488e7349372a63c01fe7e28b36ae3da495445a222b7b490 1078196 
emacs-goodies-el_35.2.tar.gz
 3aa7d1bf722602205f26cd5a06e0e5fcdf42cf5910cd7fd969e1559e4fbdc850 848438 
emacs-goodies-el_35.2_all.deb
 51a80641cfdf98ed68d357ea68ea7e0af3f6d1e256e6a67e13519b47d763d194 82522 
gnus-bonus-el_35.2_all.deb
 03114450e0638147131fd62b268622946fd3367061c462e099dbb2a85cd7c23e 41948 
devscripts-el_35.2_all.deb
 c290c47350755867546fd6d397d54e17a5dffef763c1c047cea6c0ddaf620709 104026 
debian-el_35.2_all.deb
 8882a1b513343a4c92d3d83ed6b370ab49b22915a155f3ca788be6b202667946 75536 
dpkg-dev-el_35.2_all.deb
 546375dab7a1b09865b66fab98d8a7ff4f6f3a52e2bc26312c4676d44ecfa2a8 43816 
vm-bonus-el_35.2_all.deb
Files: 
 8fee3fd2d354a877766fe4289230e55d 1650 editors optional 
emacs-goodies-el_35.2.dsc
 8dad2b07e27ccd5595d1be56988b9114 1078196 editors optional 
emacs-goodies-el_35.2.tar.gz
 6890203a3ec649547a4bf0666a63b7f7 848438 editors optional 
emacs-goodies-el_35.2_all.deb
 b3f75a6cdbab6011c2cb3cf062b0c241 82522 news optional gnus-bonus-el_35.2_all.deb
 c9e51e87ce031c5f6036d4f096e02ac1 41948 editors optional 
devscripts-el_35.2_all.deb
 8a4ea77ab1e311e085e8c255201319f1 104026 utils optional debian-el_35.2_all.deb
 55e054ac9ce4d60bd779f1de139af25e 75536 utils optional dpkg-dev-el_35.2_all.deb
 f98a1fc17075335c99bcba0215fff853 43816 mail optional vm-bonus-el_35.2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJOqZVNAAoJEBfcPMRw1Kl5a/4QAIA0/oeOSEzpf1drs/W9yJVj
ho6cWtuj7j9KEfURWSh84JUvWZEw3TxO0MQHUbKW9W7fTCZ353VdA4U0b0a2FwNu
DCeuN7Y/Futyi9eRxKObfHBZBSnjsHQx1WQbYj1r3RR/LadKiESmn0jEx4RydGU0
PfcsUu+EtdZfAwtnp2NpjO79xCZ6170EIXp6x/DxOuwU4r4lKgMbywKSyQtdpITF
NKNYcx3IP9QOPSJ2kGXxgG7uhUWQBm+Mb0qzhqIDl13BxyLAu6mi5pKXqqSPRRkL
SQKEIsL3036Av/OQ0/XMLjBS6A5kJ0Wj/3V3DkmDzXpOOxlELHzZlQItoxtShNkN
TbZiBqTpq6i3MlK9TcCjPk4vJgMKd8Xh1Xg6GJ0NAwaO1Lrtvhyv/Qq0N9uFkQfi
22SB3U97M1Mo3CVV8HGcSwe20latqOUh3ZUyeHWTNHSOiOQ11HH/RhW7B295iCI0
4r8/tgXsWAQuPjfkzW3+8JKNIafmmc2T26khRTk6NiHYzT8V5ZlAT2DSaQ/Bl5+i
xEWZAwzD1yuKI8o5EwkIp35jWhJY5JDPXECv+AetEOsl2lyNb1ytj/BIHhMvXUoZ
oIKOlZDSqeOWjYyDU3GGn4R9Txxg3MREy9yJveRZIEWmgJI+K6n60DcAxAFH4bud
uNs1r9IT4j+fDC/GVObR
=cRYk
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to