Ticket #603 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

init scripts should not be used to check if a package is installed

Reported by: lunar Assigned to: anonymous
Priority: high Milestone: alternc-0.9.5
Component: Shell-scripts et binaires Version: alternc-0.9.4
Severity: major Keywords:
Cc:

Description

Init scripts are conffiles and thus only removed on package purge. Therefore they should not be used in alternc.install to check if a package is currently installed.

Change History

03/29/06 19:06:00 changed by Jonathan

Instead, and if we don't want to use dpkg (a bit heavy), we can test /usr/share/doc/<package name> (mandatory for all packages, but can be a symlink ...).

03/31/06 21:31:16 changed by anarcat

  • milestone changed from 1.0 to 0.9.5.

03/31/06 21:31:35 changed by anarcat

why not just check for the actualy binary of file we need to modify?

04/02/06 21:26:38 changed by joe

Étant donné que le package "alternc" 'depends' de ces paquetages, ces vérifications ne sont-elles pas redondantes ?

04/17/06 23:24:57 changed by anarcat

ghost in the machine

04/25/06 03:02:44 changed by anarcat

  • status changed from new to closed.
  • resolution set to fixed.

(In [1009]) use relevant file instead of init.d file to check wether or not to modify a config file

Closes: #603

04/25/06 03:02:51 changed by anarcat

(In [1009]) use relevant file instead of init.d file to check wether or not to modify a config file

Closes: #603

04/25/06 03:03:27 changed by anarcat

(In [1009]) use relevant file instead of init.d file to check wether or not to modify a config file

Closes: #603

04/25/06 03:04:53 changed by anarcat

(In [1009]) use relevant file instead of init.d file to check wether or not to modify a config file

Closes: #603

04/25/06 18:24:32 changed by nahuel

  • status changed from closed to reopened.
  • resolution deleted.

Si le paquet a été désinstallé sans purge les fichiers dans /etc/ restent il me semble...

04/25/06 18:48:30 changed by anarcat

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [1022]) remove remaining references to init.d. note that we rely on config files only if we are going to modify those config files. if we rely on a service being running, we look for it's binary to see if it's installed.

Closes: #603