[kernel] r11347 - people/waldi/dkt/bin
Bastian Blank
waldi at alioth.debian.org
Sun May 11 14:40:49 UTC 2008
Author: waldi
Date: Sun May 11 14:40:48 2008
New Revision: 11347
Log:
bin/dkt-maintainer: Execute debconf if necessary.
Modified:
people/waldi/dkt/bin/dkt-maintainer
Modified: people/waldi/dkt/bin/dkt-maintainer
==============================================================================
--- people/waldi/dkt/bin/dkt-maintainer (original)
+++ people/waldi/dkt/bin/dkt-maintainer Sun May 11 14:40:48 2008
@@ -161,8 +161,14 @@
options, args = parser.parse_args()
if len(args) < 4:
raise RuntimeError("Too less arguments")
- if not options.debug and not os.getenv('DEBCONF_HAS_FRONTEND'):
- raise RuntimeError("This program expects to be run in debconf")
+
+ if not options.debug and not os.getenv('DEBIAN_HAS_FRONTEND'):
+ if 'DEBCONF_USE_CDEBCONF' in os.environ and os.environ['DEBCONF_USE_CDEBCONF']:
+ frontend = '/usr/lib/cdebconf/debconf'
+ else:
+ frontend = '/usr/share/debconf/frontend'
+ os.environ['PERL_DL_NONLAZY']='1'
+ os.execv(frontend, [frontend, sys.executable] + sys.argv)
name = args[0]
cls = clss[name]
More information about the Kernel-svn-changes
mailing list