[Pkg-utopia-commits] r1066 - in packages/unstable/hal/debian: .
patches
Sjoerd Simons
sjoerd at costa.debian.org
Wed Oct 18 21:20:01 UTC 2006
Author: sjoerd
Date: 2006-10-18 21:20:00 +0000 (Wed, 18 Oct 2006)
New Revision: 1066
Added:
packages/unstable/hal/debian/patches/13_hal_callout_bashism.patch
Modified:
packages/unstable/hal/debian/changelog
Log:
* 12_pegasus_pmu_crash_fix.patch
- Added. Check if power_management.type was set before doing strcmp and
detect Pegasos machines as having the desktop formfactor
* /debian/patches/13_hal_callout_bashism.patch
- Added. Fix some bashisms in the hal callout scripts (Closes: #393203)
Modified: packages/unstable/hal/debian/changelog
===================================================================
--- packages/unstable/hal/debian/changelog 2006-10-18 19:20:01 UTC (rev 1065)
+++ packages/unstable/hal/debian/changelog 2006-10-18 21:20:00 UTC (rev 1066)
@@ -1,11 +1,13 @@
hal (0.5.8.1-2) unstable; urgency=low
- * 12_pegasus_pmu_crash_fix.patch
- - Added. Check if power_management.type was set before doing strcmp and
- detect Pegasos machines as having the desktop formfactor
+ * 12_pegasus_pmu_crash_fix.patch
+ - Added. Check if power_management.type was set before doing strcmp and
+ detect Pegasos machines as having the desktop formfactor
(Closes: #391124)
+ * /debian/patches/13_hal_callout_bashism.patch
+ - Added. Fix some bashisms in the hal callout scripts (Closes: #393203)
- -- Sjoerd Simons <sjoerd at debian.org> Wed, 18 Oct 2006 20:45:08 +0200
+ -- Sjoerd Simons <sjoerd at debian.org> Wed, 18 Oct 2006 23:07:57 +0200
hal (0.5.8.1-1) unstable; urgency=low
Added: packages/unstable/hal/debian/patches/13_hal_callout_bashism.patch
===================================================================
--- packages/unstable/hal/debian/patches/13_hal_callout_bashism.patch (rev 0)
+++ packages/unstable/hal/debian/patches/13_hal_callout_bashism.patch 2006-10-18 21:20:00 UTC (rev 1066)
@@ -0,0 +1,75 @@
+commit 5723023bc88508bae3fd99b706d9ecfd1e429c26
+Author: Sjoerd Simons <sjoerd at luon.net>
+Date: Wed Oct 18 23:06:28 2006 +0200
+
+ fix bashisms in the various hal callout scripts
+
+ Some of the hal callout scripts use == for string comparison.
+ Which is a bashism and will make the scripts fail if /bin/sh isn't
+ bash.
+
+diff --git a/tools/hal-system-power-hibernate b/tools/hal-system-power-hibernate
+index ab8ce9d..ffdd330 100755
+--- a/tools/hal-system-power-hibernate
++++ b/tools/hal-system-power-hibernate
+@@ -1,7 +1,7 @@
+ #!/bin/sh
+
+ PRIVILEGE=hal-power-hibernate
+-if [ "$HAVE_POLKIT" == "1" ] ; then
++if [ "$HAVE_POLKIT" = "1" ] ; then
+ if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then
+ RESULT=$(polkit-is-privileged --privilege $PRIVILEGE \
+ --user $HAL_METHOD_INVOKED_BY_UID \
+diff --git a/tools/hal-system-power-reboot b/tools/hal-system-power-reboot
+index dec4b0b..1c93aac 100755
+--- a/tools/hal-system-power-reboot
++++ b/tools/hal-system-power-reboot
+@@ -1,7 +1,7 @@
+ #!/bin/sh
+
+ PRIVILEGE=hal-power-reboot
+-if [ "$HAVE_POLKIT" == "1" ] ; then
++if [ "$HAVE_POLKIT" = "1" ] ; then
+ if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then
+ RESULT=$(polkit-is-privileged --privilege $PRIVILEGE \
+ --user $HAL_METHOD_INVOKED_BY_UID \
+diff --git a/tools/hal-system-power-shutdown b/tools/hal-system-power-shutdown
+index 33a3226..df3d14a 100755
+--- a/tools/hal-system-power-shutdown
++++ b/tools/hal-system-power-shutdown
+@@ -1,7 +1,7 @@
+ #!/bin/sh
+
+ PRIVILEGE=hal-power-poweroff
+-if [ "$HAVE_POLKIT" == "1" ] ; then
++if [ "$HAVE_POLKIT" = "1" ] ; then
+ if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then
+ RESULT=$(polkit-is-privileged --privilege $PRIVILEGE \
+ --user $HAL_METHOD_INVOKED_BY_UID \
+diff --git a/tools/hal-system-power-suspend b/tools/hal-system-power-suspend
+index 8199689..bd698b7 100755
+--- a/tools/hal-system-power-suspend
++++ b/tools/hal-system-power-suspend
+@@ -1,7 +1,7 @@
+ #!/bin/sh
+
+ PRIVILEGE=hal-power-suspend
+-if [ "$HAVE_POLKIT" == "1" ] ; then
++if [ "$HAVE_POLKIT" = "1" ] ; then
+ if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then
+ RESULT=$(polkit-is-privileged --privilege $PRIVILEGE \
+ --user $HAL_METHOD_INVOKED_BY_UID \
+diff --git a/tools/linux/hal-system-power-suspend-linux b/tools/linux/hal-system-power-suspend-linux
+index 59cde73..6842cc0 100755
+--- a/tools/linux/hal-system-power-suspend-linux
++++ b/tools/linux/hal-system-power-suspend-linux
+@@ -19,7 +19,7 @@ unsupported() {
+ read seconds_to_sleep
+
+ #PMU systems cannot use /sys/power/state yet, so use a helper to issue an ioctl
+-if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" == "pmu" ]; then
++if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "pmu" ]; then
+ hal-system-power-pmu sleep
+ if [ $? -ne 0 ]; then
+ echo "org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported" >&2
More information about the Pkg-utopia-commits
mailing list