Merge lp:~ted/url-dispatcher/dump-tool into lp:url-dispatcher/15.10

Proposed by Ted Gould on 2015-05-15
Status: Superseded
Proposed branch: lp:~ted/url-dispatcher/dump-tool
Merge into: lp:url-dispatcher/15.10
Diff against target: 73 lines (+14/-5)
7 files modified
debian/control (+1/-0)
debian/source_url-dispatcher.py (+1/-3)
debian/url-dispatcher-crashdb.conf (+2/-1)
debian/url-dispatcher-tools.install (+1/-1)
debian/url-dispatcher.install (+1/-0)
tools/CMakeLists.txt (+5/-0)
tools/url-dispatcher-dump (+3/-0)
To merge this branch: bzr merge lp:~ted/url-dispatcher/dump-tool
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing on 2015-05-15
Indicator Applet Developers 2015-05-15 Pending
Review via email: mp+259270@code.launchpad.net

This proposal has been superseded by a proposal from 2015-06-08.

Commit Message

Provide a small tool to dump the URL DB in a readable form

Description of the Change

I keep having to ask people to do this when we're debugging things, so I figure this is a little easier way to get the info from them.

To post a comment you must log in.
lp:~ted/url-dispatcher/dump-tool updated on 2015-06-08
89. By Ted Gould on 2015-06-08

Grab Upstart dep

90. By Ted Gould on 2015-06-08

Fix CMake file to use PROGRAMS

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-08-20 18:41:41 +0000
3+++ debian/control 2015-06-08 15:26:40 +0000
4@@ -22,6 +22,7 @@
5 python3-nose,
6 python3-testtools,
7 sqlite3,
8+ upstart,
9 Standards-Version: 3.9.4
10 Homepage: http://launchpad.net/url-dispatcher
11 # If you aren't a member of ~indicator-applet-developers but need to upload
12
13=== modified file 'debian/source_url-dispatcher.py'
14--- debian/source_url-dispatcher.py 2014-06-06 16:11:22 +0000
15+++ debian/source_url-dispatcher.py 2015-06-08 15:26:40 +0000
16@@ -15,6 +15,4 @@
17
18 dbpath = os.path.join(xdg_cache_home, 'url-dispatcher', 'urls-1.db')
19 if os.path.exists(dbpath):
20- attach_command_output(report, ['sqlite3', dbpath, '.tables'], 'CacheDBTables')
21- attach_command_output(report, ['sqlite3', dbpath, 'select * from urls'], 'CacheDBURLS')
22- attach_command_output(report, ['sqlite3', dbpath, 'select * from configfiles'], 'CacheDBFiles')
23+ attach_command_output(report, ['url-dispatcher-dump'], 'URLDispatcherDB')
24
25=== modified file 'debian/url-dispatcher-crashdb.conf'
26--- debian/url-dispatcher-crashdb.conf 2014-06-06 16:06:24 +0000
27+++ debian/url-dispatcher-crashdb.conf 2015-06-08 15:26:40 +0000
28@@ -1,6 +1,7 @@
29
30 url_dispatcher = {
31 'impl': 'launchpad',
32- 'project': 'url-dispatcher',
33+ 'distro': 'ubuntu',
34+ 'package': 'url-dispatcher',
35 'bug_pattern_base': None,
36 }
37
38=== modified file 'debian/url-dispatcher-tools.install'
39--- debian/url-dispatcher-tools.install 2013-06-28 16:35:12 +0000
40+++ debian/url-dispatcher-tools.install 2015-06-08 15:26:40 +0000
41@@ -1,1 +1,1 @@
42-usr/bin
43+usr/bin/url-dispatcher
44
45=== modified file 'debian/url-dispatcher.install'
46--- debian/url-dispatcher.install 2013-06-28 16:35:12 +0000
47+++ debian/url-dispatcher.install 2015-06-08 15:26:40 +0000
48@@ -1,3 +1,4 @@
49 usr/lib/*/url-dispatcher
50 usr/share/dbus-1
51 usr/share/upstart/sessions
52+usr/bin/url-dispatcher-dump
53
54=== modified file 'tools/CMakeLists.txt'
55--- tools/CMakeLists.txt 2013-06-28 15:55:27 +0000
56+++ tools/CMakeLists.txt 2015-06-08 15:26:40 +0000
57@@ -16,3 +16,8 @@
58 RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
59 )
60
61+install(
62+ SCRIPT url-dispatcher-dump
63+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
64+)
65+
66
67=== added file 'tools/url-dispatcher-dump'
68--- tools/url-dispatcher-dump 1970-01-01 00:00:00 +0000
69+++ tools/url-dispatcher-dump 2015-06-08 15:26:40 +0000
70@@ -0,0 +1,3 @@
71+#!/bin/sh
72+
73+echo .quit | sqlite3 -batch -csv -cmd "select urls.protocol, urls.domainsuffix, configfiles.name from urls, configfiles where urls.sourcefile = configfiles.rowid;" ~/.cache/url-dispatcher/urls-1.db

Subscribers

People subscribed via source and target branches