Bug#518074: hpoj: Package remove fails to remove init script

2009-09-14 Thread Petter Reinholdtsen

tags 518074 + patch
thanks

[Thue Janus Kristensen]
 After 
   # aptitude remove hpoj
 I still have the following on my system:
 
 t...@h ~ ls -l /etc/init.d/hpoj
 -rwxr-xr-x 1 root root 45517 2008-10-08 14:24 /etc/init.d/hpoj
 t...@h ~ ls -l /etc/rc4.d/S19hpoj
 lrwxrwxrwx 1 root root 14 2009-03-03 23:34 /etc/rc4.d/S19hpoj - 
 ../init.d/hpoj

This is the correct behaviour.

 So at each boot hpoj still tries to start. dpkg --purge hpoj fixes
 it, but should not be neccesary.

The symlinks should be left behind until the package is purged (the
enabled/disabled status is configuration), but the script should not
do anything if the package have been removed.

Here is a patch to fix it.

diff -ur ../hpoj-0.91/scripts/ptal-init.in 
../hpoj-0.91-pere/scripts/ptal-init.in
--- ../hpoj-0.91/scripts/ptal-init.in   2009-09-14 11:12:36.0 +0200
+++ ../hpoj-0.91-pere/scripts/ptal-init.in  2009-09-14 11:15:53.0 
+0200
@@ -38,6 +38,10 @@

 use strict;

+# Do nothing if the package is removed but not purged
+if ( ! -x /usr/sbin/ptal-mlcd ) {
+exit 0;
+}

 ###
 # In case of difficulty you might need to modify the following definitions.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#518074: hpoj: Package remove fails to remove init script

2009-03-03 Thread Thue Janus Kristensen
Package: hpoj
Version: Package remove fails to remove init script
Severity: normal

After 
  # aptitude remove hpoj
I still have the following on my system:

t...@h ~ ls -l /etc/init.d/hpoj
-rwxr-xr-x 1 root root 45517 2008-10-08 14:24 /etc/init.d/hpoj
t...@h ~ ls -l /etc/rc4.d/S19hpoj
lrwxrwxrwx 1 root root 14 2009-03-03 23:34 /etc/rc4.d/S19hpoj - ../init.d/hpoj

So at each boot hpoj still tries to start. dpkg --purge hpoj fixes it,
but should not be neccesary.

The version of hpoj I installed and uninstalled was 0.91-14

Regards, Thue

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages hpoj depends on:
ii  adduser  3.110   add and remove users and groups
ii  libc62.7-18  GNU C Library: Shared libraries
ii  libgcc1  1:4.3.3-3   GCC support library
ii  libsane  1.0.19-25   API library for scanners
ii  libstdc++6   4.3.3-3 The GNU Standard C++ Library v3
ii  libusb-0.1-4 2:0.1.12-13 userspace USB programming library
ii  psmisc   22.6-1  Utilities that use the proc filesy

Versions of packages hpoj recommends:
ii  cups  1.3.8-1lenny4.1Common UNIX Printing System(tm) - 
ii  cups-bsd [lpr]1.3.8-1lenny4.1Common UNIX Printing System(tm) - 
ii  foomatic-filters  3.0.2-20080211-3.2 OpenPrinting printer support - fil
ii  hpijs 2.8.6.b-4  HP Linux Printing and Imaging - gs

Versions of packages hpoj suggests:
ii  cups-bsd 1.3.8-1lenny4.1 Common UNIX Printing System(tm) - 
ii  foomatic-db-hpijs20080211-1  OpenPrinting printer support - dat
ii  ghostscript-x8.63.dfsg.1-2   The GPL Ghostscript PostScript/PDF
ii  hplip2.8.6.b-4   HP Linux Printing and Imaging Syst
pn  hpoj-xojpanelnone  (no description available)
ii  mtools   4.0.4-1 Tools for manipulating MSDOS files
pn  sane none  (no description available)
pn  xsanenone  (no description available)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org