Package: crosshurd
Version: 1.7.18
Severity: important
Tags: patch

Hi!

The hack used in native-install to install the packages with a fake
start-stop-daemon (a /bin/true copy), when run twice by the script, ends up
copying a fake start-stop-daemon into /sbin/start-stop-daemon.real.

This little patch fixes the problem by avoiding to create
/sbin/start-stop-daemon.real twice.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL 
set to C)

Versions of packages crosshurd depends on:
ii  dialog                    1.0-20050306-1 Displays user-friendly dialog boxe
ii  dpkg-dev                  1.13.10        Package building tools for Debian

Versions of packages crosshurd recommends:
pn  attr                          <none>     (no description available)

-- no debconf information
--- /usr/share/crosshurd/native-install~        2005-07-07 11:32:30.000000000 
+0200
+++ /usr/share/crosshurd/native-install 2005-07-24 20:50:34.000000000 +0200
@@ -133,7 +133,8 @@
 dpkg --force-depends -i /var/cache/apt/archives/gawk_*.deb
 dpkg --force-depends -i /var/cache/apt/archives/base-{files,passwd}_*.deb
 dpkg --force-depends -i /var/cache/apt/archives/dpkg_*.deb
-mv $ssd{,.real} ; cp /bin/true $ssd
+if ! test -e ${ssd}.real ; then mv ${ssd}{,.real} ; fi
+cp /bin/true $ssd
 dpkg --force-depends -i /var/cache/apt/archives/libc[0-9]*.deb
 dpkg --force-depends -i /var/cache/apt/archives/perl-base_*.deb
 dpkg --force-depends -i /var/cache/apt/archives/debconf_*.deb
@@ -150,7 +151,8 @@
        && dpkg --force-depends --skip-same-version --unpack $i
 done
 dpkg --configure --pending --force-configure-any --force-depends
-mv $ssd{,.real} ; cp /bin/true $ssd
+if ! test -e ${ssd}.real ; then mv ${ssd}{,.real} ; fi
+cp /bin/true $ssd
 
 # install base packages
 for i in /var/cache/apt/archives/*.deb ; do

Reply via email to