[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#205265: marked as done (base-config: Make it possible to install packages noninteractively)



Your message dated Thu, 21 Aug 2003 07:02:43 -0400
with message-id <E19pnDH-0002p8-00@auric.debian.org>
and subject line Bug#205265: fixed in base-config 1.69
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; 13 Aug 2003 18:27:22 +0000
>From pere@gigs.hungry.com Wed Aug 13 13:27:20 2003
Return-path: <pere@gigs.hungry.com>
Received: from ngt107.uio.no (minerva.hungry.com) [129.240.242.107] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19n0L8-0003MB-00; Wed, 13 Aug 2003 13:27:19 -0500
Received: from pere by minerva.hungry.com with local (Exim 3.35 #1 (Debian))
	id 19n0L7-0001In-00; Wed, 13 Aug 2003 20:27:17 +0200
To: submit@bugs.debian.org
Subject: base-config: Make it possible to install packages noninteractively
From: Petter Reinholdtsen <pere@hungry.com>
Message-Id: <E19n0L7-0001In-00@minerva.hungry.com>
Sender: Petter Reinholdtsen <pere@gigs.hungry.com>
Date: Wed, 13 Aug 2003 20:27:17 +0200
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-12.3 required=4.0
	tests=BAYES_20,HAS_PACKAGE,PATCH_UNIFIED_DIFF
	autolearn=ham version=2.53-bugs.debian.org_2003_07_20
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_07_20 (1.174.2.15-2003-03-30-exp)


Package:  base-config
Version:  1.67
Severity: wishlist
Tags:     patch

Here is a patch to make sure DEBIAN_FRONTEND is set to the current
debconf frontend when calling apt-get dselect-upgrade in 75apt-get, to
make sure non-interactive mode is passed on to the packages only
accepting the environment variable.  This make it easier to do
automatic installation.

I'm not sure if the use of debconf-communicate is the best way to
fetch the current frontend, but was unable to come up with a better
way to do it.

Index: lib/75apt-get
===================================================================
RCS file: /cvs/debian-boot/base-config/lib/75apt-get,v
retrieving revision 1.11
diff -u -3 -p -u -r1.11 75apt-get
--- lib/75apt-get       18 Apr 2003 17:38:45 -0000      1.11
+++ lib/75apt-get       13 Aug 2003 18:23:53 -0000
@@ -4,6 +4,17 @@
 if [ "$1" != retry ]; then
        # Make dpkg not background itself to get a shell.
        export DPKG_NO_TSTP="yes"
+
+       # Some packages (like old ispell dictionaries and exim3), do
+       # not use debconf, but accept environment variable
+       # DEBIAN_FRONTEND=noninteractive.  Pass the current debconf
+       # frontend to them unless it is set already.
+       if [ -z "$DEBCONF_FRONTEND" ] ; then
+               # Get the value, and convert it to lower case to avoid
+               # forcing programs to handle the variable case-sensitive
+               DEBCONF_FRONTEND=`echo GET debconf/frontend | debconf-communicate | tr A-Z a-z | sed 's/^0 //'`
+               export DEBCONF_FRONTEND
+       fi

        if apt-get -y -f dselect-upgrade; then
                apt-get -f clean || true

---------------------------------------
Received: (at 205265-close) by bugs.debian.org; 21 Aug 2003 11:08:07 +0000
>From katie@auric.debian.org Thu Aug 21 06:08:04 2003
Return-path: <katie@auric.debian.org>
Received: from auric.debian.org [206.246.226.45] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19pnIQ-0006Gb-00; Thu, 21 Aug 2003 06:08:02 -0500
Received: from katie by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 19pnDH-0002p8-00; Thu, 21 Aug 2003 07:02:43 -0400
From: Petter Reinholdtsen <pere@debian.org>
To: 205265-close@bugs.debian.org
X-Katie: $Revision: 1.35 $
Subject: Bug#205265: fixed in base-config 1.69
Message-Id: <E19pnDH-0002p8-00@auric.debian.org>
Sender: Archive Administrator <katie@auric.debian.org>
Date: Thu, 21 Aug 2003 07:02:43 -0400
Delivered-To: 205265-close@bugs.debian.org

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

base-config_1.69.dsc
  to pool/main/b/base-config/base-config_1.69.dsc
base-config_1.69.tar.gz
  to pool/main/b/base-config/base-config_1.69.tar.gz
base-config_1.69_all.deb
  to pool/main/b/base-config/base-config_1.69_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 205265@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Petter Reinholdtsen <pere@debian.org> (supplier of updated base-config 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 ftpmaster@debian.org)


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

Format: 1.7
Date: Thu, 21 Aug 2003 12:53:49 +0200
Source: base-config
Binary: base-config
Architecture: source all
Version: 1.69
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Petter Reinholdtsen <pere@debian.org>
Description: 
 base-config - Debian base configuration package
Closes: 205265 206438
Changes: 
 base-config (1.69) unstable; urgency=low
 .
   * Joey Hess:
     - Added DEBIAN_FRONTEND setting hack for broken postinst scripts that
       still check this variable. Closes: #205265
   * Petter Reinholdtsen.
     - Make sure the DEBIAN_FRONTEND hack never set an empty variable.
     - Clean up message printing in termwrap.
     - Updated debian/po/fr.po, thanks to Christian Perrier. (Closes: #206438)
     - Make sure 75apt-install do not loop forever when running in
       non-interactive mode.
Files: 
 16fd2331ed80b570bfb4c824c975cbc8 646 base optional base-config_1.69.dsc
 0344cc86bcc9a3012f03f5b689618681 285147 base optional base-config_1.69.tar.gz
 24c9f4ac9b5ca4db6384ffca4b06f648 135154 base optional base-config_1.69_all.deb

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

iD8DBQE/RKUG20zMSyow1ykRAtt5AKCTc0AjlvYwCbINONcu3VniTtN4XgCgvRf5
54LRl79Z5W/1RRVXAIwDCTk=
=edLv
-----END PGP SIGNATURE-----



Reply to: