summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2012-02-24 10:08:06 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2012-02-24 10:08:06 +0100
commitfb03a9659fca036c8855d126e35e92923a6aa7f9 (patch)
treebfe196603e99bc93b0b4527497d78edb8d08497d
parentabf61c8f8456bf599f428d58a29f851e2c7723ca (diff)
downloadconsolekit-fb03a9659fca036c8855d126e35e92923a6aa7f9.tar.gz
Add 00git_truncate_frequent.patch: ck-history: don't truncate --frequent output to 8 chars. (Closes: #660171, LP: #476811)
-rw-r--r--debian/changelog7
-rw-r--r--debian/patches/00git_truncate_frequent.patch24
-rw-r--r--debian/patches/series1
3 files changed, 32 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 788e32e..ae87b64 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+consolekit (0.4.5-2) UNRELEASED; urgency=low
+
+ * Add 00git_truncate_frequent.patch: ck-history: don't truncate --frequent
+ output to 8 chars. (Closes: #660171, LP: #476811)
+
+ -- Martin Pitt <mpitt@debian.org> Fri, 24 Feb 2012 10:07:19 +0100
+
consolekit (0.4.5-1) unstable; urgency=low
[ Michael Biebl ]
diff --git a/debian/patches/00git_truncate_frequent.patch b/debian/patches/00git_truncate_frequent.patch
new file mode 100644
index 0000000..4b48ae9
--- /dev/null
+++ b/debian/patches/00git_truncate_frequent.patch
@@ -0,0 +1,24 @@
+From 803cbdfbd78b66b17ead45b1584d65a258e785bf Mon Sep 17 00:00:00 2001
+From: Ray Strode <rstrode@redhat.com>
+Date: Wed, 25 May 2011 00:58:10 +0000
+Subject: ck-history: don't truncate --frequent output to 8 chars
+
+GDM screenscrapes the output and so we need the full username.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=650330
+---
+diff --git a/tools/ck-history.c b/tools/ck-history.c
+index d02caaa..85d9e6f 100644
+--- a/tools/ck-history.c
++++ b/tools/ck-history.c
+@@ -804,7 +804,7 @@ generate_report_frequent (int uid,
+ data = user_counts->data;
+
+ username = get_user_name_for_uid (data->uid);
+- g_print ("%-8.8s %u\n", username, data->count);
++ g_print ("%-8s %u\n", username, data->count);
+ g_free (data);
+ user_counts = g_list_delete_link (user_counts, user_counts);
+ g_free (username);
+--
+cgit v0.9.0.2-2-gbebe
diff --git a/debian/patches/series b/debian/patches/series
index 1591648..a4645ef 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
# Debian patches for consolekit
+00git_truncate_frequent.patch
03-cleanup_console_tags.patch
82-hurd_support.patch