Your message dated Sun, 29 May 2005 00:44:09 +0100
with message-id <[EMAIL PROTECTED]>
and subject line [EMAIL PROTECTED]: Fixed in NMU of debconf 1.4.50]
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 12 Apr 2005 13:13:49 +0000
>From [EMAIL PROTECTED] Tue Apr 12 06:13:49 2005
Return-path: <[EMAIL PROTECTED]>
Received: from chiark.greenend.org.uk [193.201.200.170] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DLLDB-0007yJ-00; Tue, 12 Apr 2005 06:13:49 -0700
Received: from [192.168.124.112] (helo=riva.lab.dotat.at)
        by chiark.greenend.org.uk (Debian Exim 3.35 #1) with esmtp
        (return-path [EMAIL PROTECTED])
        id 1DLLD9-0000jR-00
        for [EMAIL PROTECTED]; Tue, 12 Apr 2005 14:13:47 +0100
Received: from cjwatson by riva.lab.dotat.at with local (Exim 3.35 #1 (Debian))
        for [EMAIL PROTECTED]
        id 1DLLD8-0004aZ-00; Tue, 12 Apr 2005 14:13:46 +0100
Date: Tue, 12 Apr 2005 14:13:46 +0100
From: Colin Watson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: debconf: implement INFO
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="O3RTKUHj+75w1tg5"
Content-Disposition: inline
User-Agent: Mutt/1.3.28i
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 


--O3RTKUHj+75w1tg5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: debconf
Version: 1.4.48
Severity: wishlist
Tags: patch

The attached patch implements the INFO command discussed on debian-boot.
The only frontend that does anything with it so far is Dialog.

-- 
Colin Watson                                       [EMAIL PROTECTED]

--O3RTKUHj+75w1tg5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="debconf.info.patch"

Index: debconf.py
===================================================================
--- debconf.py  (revision 1765)
+++ debconf.py  (working copy)
@@ -32,7 +32,8 @@
     def __init__(self, title=None):
         for command in ('capb set reset title input beginblock endblock go get'
                         ' register unregister subst fset fget previous_module'
-                        ' visible purge metaget exist version 
settitle').split():
+                        ' visible purge metaget exist version settitle'
+                        ' info').split():
             self.setCommand(command)
         self.write, self.read = sys.stdout, sys.stdin
         sys.stdout = sys.stderr
Index: confmodule
===================================================================
--- confmodule  (revision 1765)
+++ confmodule  (working copy)
@@ -62,6 +62,7 @@
 db_clear ()    { _db_cmd "CLEAR $@"; }
 db_settitle () { _db_cmd "SETTITLE $@"; }
 db_previous_module () { _db_cmd "PREVIOUS_MODULE $@"; }
+db_info ()     { _db_cmd "INFO $@"; }
 
 # An old alias for input.
 db_text () {
Index: Debconf/FrontEnd/Dialog.pm
===================================================================
--- Debconf/FrontEnd/Dialog.pm  (revision 1765)
+++ Debconf/FrontEnd/Dialog.pm  (working copy)
@@ -278,8 +278,15 @@
                unshift @_, "--output-fd", fileno(OUTPUT_WTR);
        }
        
+       my $backtitle;
+       if (defined $this->info and $this->info->description ne '') {
+               $backtitle = $this->info->description;
+       } else {
+               $backtitle = gettext("Debian Configuration");
+       }
+
        my $pid = open3('>&STDOUT', '<&STDIN', \*ERRFH, $this->program,
-               '--backtitle', gettext("Debian Configuration"),
+               '--backtitle', $backtitle,
                '--title', $this->title, @_);
        close OUTPUT_WTR if $this->hasoutputfd;
        my $output='';
Index: Debconf/FrontEnd.pm
===================================================================
--- Debconf/FrontEnd.pm (revision 1765)
+++ Debconf/FrontEnd.pm (working copy)
@@ -40,6 +40,13 @@
 
 The title of the FrontEnd.
 
+=item info
+
+A question containing an informative message to be displayed, without
+requiring any acknowledgement from the user. FrontEnds may choose not to
+implement this. If they do implement it, they should display the info
+persistently until some other info comes along.
+
 =item backup
 
 A flag that Elements can set when they are displayed, to tell the FrontEnd
@@ -68,6 +75,7 @@
        $this->interactive('');
        $this->capb('');
        $this->title('');
+       $this->info(undef);
 }
 
 =item elementtype
Index: Debconf/ConfModule.pm
===================================================================
--- Debconf/ConfModule.pm       (revision 1765)
+++ Debconf/ConfModule.pm       (working copy)
@@ -684,6 +684,29 @@
        return $codes{success}, $question->flag($flag, $value);
 }
 
+=item command_info
+
+Pass this a question name. It displays the given template as an out-of-band
+informative message. Unlike inputting a note, this doesn't require an
+acknowledgement from the user, and depending on the frontend it may not even
+be displayed at all. Frontends should display the info persistently until
+some other info comes along.
+
+=cut
+
+sub command_info {
+       my $this=shift;
+       return $codes{syntaxerror}, "Incorrect number of arguments" if @_ != 1;
+       my $question_name=shift;
+
+       my $question=Debconf::Question->get($question_name) ||
+               return $codes{badparams}, "\"$question_name\" doesn't exist";
+
+       $this->frontend->info($question);
+
+       return $codes{success};
+}
+
 =item command_visible
 
 Deprecated.
Index: samples/demo.templates
===================================================================
--- samples/demo.templates      (revision 1765)
+++ samples/demo.templates      (working copy)
@@ -100,3 +100,8 @@
 Type: title
 Description: This is my demo title.
 Description-fr: This is my demo title in French (yeah, right)
+
+Template: demo/info
+Type: title
+Description: This is my demo info.
+Description-fr: This is my demo info in French (yeah, right)
Index: samples/demo
===================================================================
--- samples/demo        (revision 1765)
+++ samples/demo        (working copy)
@@ -25,6 +25,7 @@
                db_input high demo/multiselect || true
        ;;
        3)
+               db_info demo/info
                db_input critical demo/string || true
                db_input low demo/password || true
                db_input low demo/text || true

--O3RTKUHj+75w1tg5--

---------------------------------------
Received: (at 304332-done) by bugs.debian.org; 28 May 2005 23:44:12 +0000
>From [EMAIL PROTECTED] Sat May 28 16:44:12 2005
Return-path: <[EMAIL PROTECTED]>
Received: from chiark.greenend.org.uk [193.201.200.170] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DcAyR-0005Mb-00; Sat, 28 May 2005 16:44:11 -0700
Received: from [192.168.124.112] (helo=riva.lab.dotat.at)
        by chiark.greenend.org.uk (Debian Exim 3.35 #1) with esmtp
        (return-path [EMAIL PROTECTED])
        id 1DcAyQ-0004eb-00; Sun, 29 May 2005 00:44:10 +0100
Received: from cjwatson by riva.lab.dotat.at with local (Exim 3.36 #1 (Debian))
        id 1DcAyP-000602-00; Sun, 29 May 2005 00:44:09 +0100
Date: Sun, 29 May 2005 00:44:09 +0100
From: Colin Watson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED],
        [EMAIL PROTECTED], [EMAIL PROTECTED],
        [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: [EMAIL PROTECTED]: Fixed in NMU of debconf 1.4.50]
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.9i
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,VALID_BTS_CONTROL 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Not an NMU.

-- 
Colin Watson                                       [EMAIL PROTECTED]

----- Forwarded message from Colin Watson <[EMAIL PROTECTED]> -----

From: Colin Watson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: Colin Watson <[EMAIL PROTECTED]>, Joey Hess <[EMAIL PROTECTED]>
X-Katie: $Revision: 1.56 $
Subject: Fixed in NMU of debconf 1.4.50
Date: Sat, 28 May 2005 16:47:23 -0400
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on riva.lab.dotat.at
X-Spam-Status: No, score=-2.2 required=4.5 tests=AWL,BAYES_00 autolearn=no 
        version=3.0.3

tag 304332 + fixed
tag 309010 + fixed
tag 309011 + fixed
tag 309013 + fixed
tag 309698 + fixed
tag 310288 + fixed

quit

This message was generated automatically in response to a
non-maintainer upload.  The .changes file follows.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 28 May 2005 21:08:59 +0100
Source: debconf
Binary: debconf-english debconf-doc debconf-utils debconf-i18n debconf
Architecture: source all
Version: 1.4.50
Distribution: unstable
Urgency: low
Maintainer: Joey Hess <[EMAIL PROTECTED]>
Changed-By: Colin Watson <[EMAIL PROTECTED]>
Description: 
 debconf    - Debian configuration management system
 debconf-doc - debconf documentation
 debconf-english - small footprint English-only debconf
 debconf-i18n - full internationalization support for debconf
 debconf-utils - debconf utilities
Closes: 304332 309010 309011 309013 309698 310288
Changes: 
 debconf (1.4.50) unstable; urgency=low
 .
   * Colin Watson
     - Generate po/debconf.pot in sorted order by source filename, rather
       than having it be in whatever order find(1) happens to produce.
     - Implement INFO command from cdebconf, to display an out-of-band
       informative message. Closes: #304332
     - Revert stdin/stdout inversion from debconf 1.1.30; that caused the
       dialog child process to read from stdout and write to stdin (which
       miraculously happened to work, at least for terminals). Instead, avoid
       the perl warning from #155682 by restoring stdin first after the open3
       call.
     - Add progress bar support, using the cdebconf PROGRESS protocol. The
       editor and web frontend implementations are stubs.
     - Correct location of standalone template files in debconf-devel(7)
       (should be /usr/share/debconf/templates/progname.templates).
     - Extend passthrough protocol slightly to send SUBST commands for any
       substitution variables that are set for each question.
     - Translate select/multiselect defaults to the current locale when
       sending them to a passthrough UI agent, and translate the value
       returned by the UI agent back to C.
   * Joey Hess
     - debconf man page update. Closes: #309698
   * Christian Perrier
     - Man pages typos corrected. Closes: #309010, #309011, #309013
   * Programs translations
     - Italian updated. Closes: #310288
Files: 
 c8fc0d3b6b60df2d6fe31908d89ed47c 621 admin optional debconf_1.4.50.dsc
 b53a9b6e17b190356aedd6b55d9bc203 364542 admin optional debconf_1.4.50.tar.gz
 fa6d399309619eae1437d45ae2b03597 107436 admin important debconf_1.4.50_all.deb
 1b92627ee50b233232e25ea26beb7cf1 108746 admin important 
debconf-i18n_1.4.50_all.deb
 c3e2f3a1185f555d065d017f7e67951f 850 admin extra debconf-english_1.4.50_all.deb
 2fe3273238e75ac8c1230f54b89615b8 159924 doc optional debconf-doc_1.4.50_all.deb
 58037c5da76bd5d1be945a7a330b0e0b 32940 devel optional 
debconf-utils_1.4.50_all.deb

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

iD8DBQFCmNNO9t0zAhD6TNERAt8uAJ9tn6RhFI70Y9kuwKBC7XhAT2UiwQCeMNZO
jaTOG0mkBHkKjCBe5UhSkIw=
=m6yP
-----END PGP SIGNATURE-----



----- End forwarded message -----


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

Reply via email to