diff options
author | Saleem Abdulrasool <compnerd@gentoo.org> | 2007-05-02 04:46:04 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@gentoo.org> | 2007-05-02 04:46:04 +0000 |
commit | 403e83658e4ead682a0f706e5cc041e3c477a320 (patch) | |
tree | d9184018eb1c0dd6866915035efc31c96739c4b6 /gnome-base/gnome-applets/files | |
parent | Add Xen 3.0.4 from the marineam-xen overlay (diff) | |
download | gentoo-2-403e83658e4ead682a0f706e5cc041e3c477a320.tar.gz gentoo-2-403e83658e4ead682a0f706e5cc041e3c477a320.tar.bz2 gentoo-2-403e83658e4ead682a0f706e5cc041e3c477a320.zip |
revbump for proc acpi fix
(Portage version: 2.1.2.5)
Diffstat (limited to 'gnome-base/gnome-applets/files')
-rw-r--r-- | gnome-base/gnome-applets/files/digest-gnome-applets-2.18.0-r1 | 3 | ||||
-rw-r--r-- | gnome-base/gnome-applets/files/gnome-applets-2.18.0-deprecated-acpi-info.patch | 38 |
2 files changed, 41 insertions, 0 deletions
diff --git a/gnome-base/gnome-applets/files/digest-gnome-applets-2.18.0-r1 b/gnome-base/gnome-applets/files/digest-gnome-applets-2.18.0-r1 new file mode 100644 index 000000000000..b08b91a64e0c --- /dev/null +++ b/gnome-base/gnome-applets/files/digest-gnome-applets-2.18.0-r1 @@ -0,0 +1,3 @@ +MD5 db3ef99c00335798f30fc0a9162c0257 gnome-applets-2.18.0.tar.bz2 7133902 +RMD160 c9a18c717fd01ede9476a70784a8522968e52211 gnome-applets-2.18.0.tar.bz2 7133902 +SHA256 f8f23e0c5e156afb0811d7a7fcbfec8dc667b8e35fa8a1cfff0b4866014c2157 gnome-applets-2.18.0.tar.bz2 7133902 diff --git a/gnome-base/gnome-applets/files/gnome-applets-2.18.0-deprecated-acpi-info.patch b/gnome-base/gnome-applets/files/gnome-applets-2.18.0-deprecated-acpi-info.patch new file mode 100644 index 000000000000..33104d7b54cf --- /dev/null +++ b/gnome-base/gnome-applets/files/gnome-applets-2.18.0-deprecated-acpi-info.patch @@ -0,0 +1,38 @@ +--- gnome-applets-2.16.2-orig/battstat/acpi-linux.c 2007-05-01 21:44:17.000000000 -0500 ++++ gnome-applets-2.16.2/battstat/acpi-linux.c 2007-05-01 21:45:50.000000000 -0500 +@@ -200,22 +200,21 @@ + acpiinfo->max_capacity = 0; + acpiinfo->low_capacity = 0; + acpiinfo->critical_capacity = 0; ++ acpiinfo->ac_state_state = "state"; ++ acpiinfo->batt_state_state = "state"; ++ acpiinfo->charging_state = "charging state"; + + hash = read_file ("/proc/acpi/info", buf, sizeof (buf)); +- if (!hash) +- return FALSE; +- +- acpi_ver = read_ulong (hash, "version"); +- g_hash_table_destroy (hash); +- +- if (acpi_ver < (gulong)20020208) { +- acpiinfo->ac_state_state = "status"; +- acpiinfo->batt_state_state = "status"; +- acpiinfo->charging_state = "state"; +- } else { +- acpiinfo->ac_state_state = "state"; +- acpiinfo->batt_state_state = "state"; +- acpiinfo->charging_state = "charging state"; ++ if (hash) ++ { ++ acpi_ver = read_ulong (hash, "version"); ++ g_hash_table_destroy (hash); ++ ++ if (acpi_ver < (gulong)20020208) { ++ acpiinfo->ac_state_state = "status"; ++ acpiinfo->batt_state_state = "status"; ++ acpiinfo->charging_state = "state"; ++ } + } + + procdir=opendir("/proc/acpi/battery/"); |