summaryrefslogtreecommitdiffstats
path: root/x11-clocks/gdesklets-clock/files
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-10-14 01:47:19 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-10-14 01:47:19 +0800
commit7db28beb045b61dd7b430c0bb72716942ed60ff8 (patch)
tree3f1450a9f3650c97767a6cece813a5a7e8b87304 /x11-clocks/gdesklets-clock/files
parent345608152d6a2164687d6c9f925ba5ff589ae222 (diff)
downloadmarcuscom-ports-7db28beb045b61dd7b430c0bb72716942ed60ff8.tar
marcuscom-ports-7db28beb045b61dd7b430c0bb72716942ed60ff8.tar.gz
marcuscom-ports-7db28beb045b61dd7b430c0bb72716942ed60ff8.tar.bz2
marcuscom-ports-7db28beb045b61dd7b430c0bb72716942ed60ff8.tar.lz
marcuscom-ports-7db28beb045b61dd7b430c0bb72716942ed60ff8.tar.xz
marcuscom-ports-7db28beb045b61dd7b430c0bb72716942ed60ff8.tar.zst
marcuscom-ports-7db28beb045b61dd7b430c0bb72716942ed60ff8.zip
Move to LOCALBASE.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7778 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-clocks/gdesklets-clock/files')
-rw-r--r--x11-clocks/gdesklets-clock/files/Clock::__init__.py16
-rw-r--r--x11-clocks/gdesklets-clock/files/patch-Install_Clock_Sensor.bin19
2 files changed, 35 insertions, 0 deletions
diff --git a/x11-clocks/gdesklets-clock/files/Clock::__init__.py b/x11-clocks/gdesklets-clock/files/Clock::__init__.py
new file mode 100644
index 000000000..f0f063ed9
--- /dev/null
+++ b/x11-clocks/gdesklets-clock/files/Clock::__init__.py
@@ -0,0 +1,16 @@
+--- __init__.py.bak Tue Mar 30 18:08:39 2004
++++ __init__.py Tue Mar 30 18:11:36 2004
+@@ -149,8 +149,11 @@
+ timezone = self._get_config("timezone")
+ if (timezone != self.__timezone):
+ self.__timezone = timezone
+- offset = commands.getoutput("TZ=\"%(timezone)s\" date +%%z"
+- % vars())
++ if timezone == "localtime":
++ offset = commands.getoutput("date +%z")
++ else:
++ offset = commands.getoutput("TZ=\"%(timezone)s\" date +%%z"
++ % vars())
+ sign = (offset[0] == "+") and 1 or -1
+ hours = int(offset[1:3])
+ mins = int(offset[3:5])
diff --git a/x11-clocks/gdesklets-clock/files/patch-Install_Clock_Sensor.bin b/x11-clocks/gdesklets-clock/files/patch-Install_Clock_Sensor.bin
new file mode 100644
index 000000000..0de363c68
--- /dev/null
+++ b/x11-clocks/gdesklets-clock/files/patch-Install_Clock_Sensor.bin
@@ -0,0 +1,19 @@
+--- Install_Clock_Sensor.bin.orig Wed Sep 3 12:51:06 2003
++++ Install_Clock_Sensor.bin Wed Sep 3 12:52:23 2003
+@@ -75,15 +75,9 @@
+ else:
+ cmd = "mkdir -p %(destination)s; cd %(destination)s; " \
+ "LANG=C tar -xzvf %(tmp)s 2>&1"
+- fail, out = commands.getstatusoutput(cmd % vars())
++ commands.getstatusoutput(cmd % vars())
+ os.unlink(tmp)
+
+- if (fail):
+- if (no_message): print ERROR_TAR + out
+- else: message(ERROR_TAR + out, "error")
+- sys.exit(1)
+-
+- print out
+ if (not list_only):
+ if (no_message): print SUCCESS
+ else: message(SUCCESS, "info")