[Debian-eeepc-devel] Bug#499911: Don't test if /usr/share/doc/eeepc-acpi-scripts exist

Santi sbejar at gmail.com
Tue Sep 23 15:19:09 UTC 2008


Package: eeepc-acpi-scripts
Version: 1.0.7
Severity: normal
Tags: patch

/usr/share/doc/eeepc-acpi-scripts is not necessary for the package,
but functions.sh is, so the doc directory may be remove to save space.

Best regards,

Santi

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages eeepc-acpi-scripts depends on:
ii  acpi-support-base             0.109-9    scripts for handling base ACPI eve
ii  acpid                         1.0.6-10   Utilities for using ACPI power man
ii  pm-utils                      1.1.2.3-1  utilities and scripts for power ma

Versions of packages eeepc-acpi-scripts recommends:
ii  alsa-utils                    1.0.16-2   ALSA utilities

Versions of packages eeepc-acpi-scripts suggests:
ii  aosd-cat                      0.2.4-1    an on screen display tool which us
ii  gnome-osd                     0.12.2-1   OSD message framework for GNOME
ii  ttf-dejavu                    2.25-3     Metapackage to pull in ttf-dejavu-
ii  ttf-freefont                  20080323-3 Freefont Serif, Sans and Mono True

-- no debconf information
-------------- next part --------------
>From c310b54a1a7769865866f2a8c22a3833a91eaba8 Mon Sep 17 00:00:00 2001
From: Santi <santi at agolina.net>
Date: Tue, 23 Sep 2008 17:14:36 +0200
Subject: [PATCH] Test for /usr/share/eeepc-acpi-scripts/functions.sh

/usr/share/doc/eeepc-acpi-scripts is not necessary for the package,
but functions.sh is, so the doc directory may be remove to save space.
---
 actions/hotkey.sh     |    2 +-
 actions/suspend.sh    |    2 +-
 actions/vga-toggle.sh |    2 +-
 actions/volume.sh     |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/actions/hotkey.sh b/actions/hotkey.sh
index 5009cc7..6bb8322 100755
--- a/actions/hotkey.sh
+++ b/actions/hotkey.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # do nothing if package is removed
-[ -d /usr/share/doc/eeepc-acpi-scripts ] || exit 0
+[ -d /usr/share/eeepc-acpi-scripts/functions.sh ] || exit 0
 
 . /etc/default/eeepc-acpi-scripts
 . /usr/share/eeepc-acpi-scripts/functions.sh
diff --git a/actions/suspend.sh b/actions/suspend.sh
index ac680ea..be62e49 100755
--- a/actions/suspend.sh
+++ b/actions/suspend.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # do nothing if package is removed
-[ -d /usr/share/doc/eeepc-acpi-scripts ] || exit 0
+[ -d /usr/share/eeepc-acpi-scripts/functions.sh ] || exit 0
 
 if (runlevel | grep -q [06]) || (pidof '/sbin/shutdown' > /dev/null); then
     exit 0
diff --git a/actions/vga-toggle.sh b/actions/vga-toggle.sh
index ad0f5da..edb9821 100755
--- a/actions/vga-toggle.sh
+++ b/actions/vga-toggle.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # do nothing if package is removed
-[ -d /usr/share/doc/eeepc-acpi-scripts ] || exit 0
+[ -d /usr/share/eeepc-acpi-scripts/functions.sh ] || exit 0
 
 . /etc/default/eeepc-acpi-scripts
 
diff --git a/actions/volume.sh b/actions/volume.sh
index 5c06820..7ffcd4e 100755
--- a/actions/volume.sh
+++ b/actions/volume.sh
@@ -3,7 +3,7 @@
 # Volume controls
 
 # do nothing if package is removed
-[ -d /usr/share/doc/eeepc-acpi-scripts ] || exit 0
+[ -d /usr/share/eeepc-acpi-scripts/functions.sh ] || exit 0
 
 . /etc/default/eeepc-acpi-scripts
 . /usr/share/eeepc-acpi-scripts/functions.sh
-- 
1.5.6.5



More information about the Debian-eeepc-devel mailing list