From b2f541022f2dfa5d1f10aab5bfbc34e03afa554f Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Fri, 6 Jan 2012 12:04:13 -0600
Subject: lirc: lirc.install: fix db update for new socket. closes #810

---
 abs/core/lirc/PKGBUILD     | 2 +-
 abs/core/lirc/lirc.install | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/abs/core/lirc/PKGBUILD b/abs/core/lirc/PKGBUILD
index 205f231..0ce8b69 100644
--- a/abs/core/lirc/PKGBUILD
+++ b/abs/core/lirc/PKGBUILD
@@ -4,7 +4,7 @@
 pkgbase=lirc
 pkgname=('lirc' 'lirc-utils')
 pkgver=0.9.0
-pkgrel=9
+pkgrel=10
 #epoch=1
 _kernver=2.6.39-LinHES
 arch=('i686' 'x86_64')
diff --git a/abs/core/lirc/lirc.install b/abs/core/lirc/lirc.install
index 1f8fd7c..ba2c957 100644
--- a/abs/core/lirc/lirc.install
+++ b/abs/core/lirc/lirc.install
@@ -16,7 +16,7 @@ post_upgrade() {
          "SELECT data FROM settings WHERE value = 'LircSocket' AND hostname = '${hostname}';"`
     if [ "${SOCKET}" != "/var/run/lirc/lircd" ]; then
       mysql -u mythtv -pmythtv -B --skip-column-names -h "${dbhost}" -D mythconverg -e \
-      "UPDATE settings SET data = '/var/run/lirc/lircd' WHERE hostname = '${hostname}';"
+      "UPDATE settings SET data = '/var/run/lirc/lircd' WHERE value = 'LircSocket' AND hostname = '${hostname}';"
     else
       echo ">>>"
       echo ">>> ATTENTION! ATTENTION! ATTENTION!"
-- 
cgit v0.12