Package: xen-tools
Version: 3.0~beta1-2
Severity: important
Tags: patch

When hook or role call installDebianPackage it fail with error like
this:

        assert failed: ${the hook script name}:103 []

because in file /usr/lib/xen-tools/common.sh, the installDebianPackage don't 
install
packages because a missing ${prefix} argument for disableStartStopDaemon and
enableStartStopDaemon function 

Here a simple patch to correct them:
                                                                                
                                                                             
                                                                                
                                                                             
--- common.sh.ori       2006-12-13 11:57:35.000000000 +0100
+++ common.sh   2006-12-13 11:26:53.000000000 +0100
@@ -78,7 +78,7 @@
     #
     # Disable the start-stop-daemon
     #
-    disableStartStopDaemon
+    disableStartStopDaemon ${prefix}
                                                                                
                                                                             
     #
     # Install the package
@@ -88,7 +88,7 @@
     #
     # Re-enable the start-stop-daemon
     #
-    enableStartStopDaemon
+    enableStartStopDaemon ${prefix}
                                                                                
                                                                             
 }


-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-xen-k7
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages xen-tools depends on:
ii  debootstrap                   0.3.3.1    Bootstrap a basic Debian system
ii  libtext-template-perl         1.44-1.1   Text::Template perl module
ii  perl-modules                  5.8.8-7    Core Perl modules

Versions of packages xen-tools recommends:
ii  perl-doc                      5.8.8-7    Perl documentation
ii  reiserfsprogs                 1:3.6.19-4 User-level tools for ReiserFS file
ii  rpmstrap                      0.5.2-2    bootstrap a basic RPM-based system
ii  xen-hypervisor-3.0.3-1-i386 [ 3.0.3-0-2  The Xen Hypervisor on i386
ii  xfsprogs                      2.8.18-1   Utilities for managing the XFS fil

-- no debconf information


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

Reply via email to