Bug#402889: xen-tools: in hooks/roles, installDebianPackage always fail

2006-12-25 Thread Steve Kemp
On Wed, Dec 13, 2006 at 01:07:00PM +0100, Abaakouk Mehdi wrote:

 When hook or role call installDebianPackage it fail with error like
 this:
 
   assert failed: ${the hook script name}:103 []

  Thanks for the patch, it has been committed to CVS and will be in
 the next release (very soon!)

Steve
-- 


signature.asc
Description: Digital signature


Bug#402889: xen-tools: in hooks/roles, installDebianPackage always fail

2006-12-13 Thread Abaakouk Mehdi
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.0 +0100
+++ common.sh   2006-12-13 11:26:53.0 +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.1Bootstrap a basic Debian system
ii  libtext-template-perl 1.44-1.1   Text::Template perl module
ii  perl-modules  5.8.8-7Core Perl modules

Versions of packages xen-tools recommends:
ii  perl-doc  5.8.8-7Perl documentation
ii  reiserfsprogs 1:3.6.19-4 User-level tools for ReiserFS file
ii  rpmstrap  0.5.2-2bootstrap 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]