Package: dpkg-dev-el
Version: 26.10-1
Severity: normal
Tags: patch

Hello,

when you finalize a changelog entry you got:
=====
 -- Luca Capello <[EMAIL PROTECTED]>  822-date: warning: This program is \
deprecated. Please use 'date -R' instead. 
Tue, 15 May 2007 20:16:49 +0200
=====

This because the following change in dpkg-dev, introduced as of
version 1.14.0 (which closed the very old bug #31364 [1]):
=====
2007-01-24  Frank Lichtenheld  <[EMAIL PROTECTED]>

        * scripts/822-date.pl: Convert the script to be a simple wrapper
        around 'date -R'.
=====

The following patch correct the problem in `debian-changelob-mode':

--8<---------------cut here---------------start------------->8---
--- debian-changelog-mode.el.ORG        2007-05-15 20:27:56.000000000 +0200
+++ debian-changelog-mode.el    2007-05-15 20:33:29.000000000 +0200
@@ -1115,9 +1115,9 @@
 
 (defun debian-changelog-date-string ()
   "Return RFC-822 format date string."
-  (let* ((dp "822-date")
+  (let* ((dp "date")
         (cp (point))
-        (ret (call-process "822-date" nil t))
+        (ret (call-process "date" nil t nil "-R"))
         (np (point))
         (out nil))
     (cond ((not (or (eq ret nil) (eq ret 0)))
--8<---------------cut here---------------end--------------->8---

But as we're now obliged to use an argument for `date`, I'd suggest
something like the following:

--8<---------------cut here---------------start------------->8---
--- debian-changelog-mode.el.ORG        2007-05-15 20:27:56.000000000 +0200
+++ debian-changelog-mode.el    2007-05-15 20:36:09.000000000 +0200
@@ -1115,19 +1115,18 @@
 
 (defun debian-changelog-date-string ()
   "Return RFC-822 format date string."
-  (let* ((dp "822-date")
-        (cp (point))
-        (ret (call-process "822-date" nil t))
+  (let* ((cp (point))
+        (ret (call-process "date" nil t nil "-R"))
         (np (point))
         (out nil))
     (cond ((not (or (eq ret nil) (eq ret 0)))
           (setq out (buffer-substring-no-properties cp np))
           (delete-region cp np)
-          (error (concat "error from " dp ": " out)))
+          (error (concat "error from `date -R`: " out)))
          (t
           (backward-char)
           (or (looking-at "\n")
-              (error (concat "error from " dp ": expected newline after date 
string")))
+              (error (concat "error from `date -R`: expected newline after 
date string")))
           (setq out (buffer-substring-no-properties cp (- np 1)))
           (delete-region cp np)
           out))))
--8<---------------cut here---------------end--------------->8---

Thx, bye,
Gismo / Luca

Footnotes: 
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=31634

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-rc1 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dpkg-dev-el depends on:
ii  debian-el                   26.10-1      Emacs helpers specific to Debian u
ii  emacs-snapshot-nox [emacsen 1:20070508-1 The GNU Emacs editor (without X su

Versions of packages dpkg-dev-el recommends:
ii  wget                 1.10.2+1.11.beta1-1 retrieves files from the web

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to