Merge lp:~stolowski/unity-scope-click/provide-default-db into lp:unity-scope-click/devel

Proposed by Paweł Stołowski
Status: Merged
Approved by: Alejandro J. Cura
Approved revision: 348
Merged at revision: 342
Proposed branch: lp:~stolowski/unity-scope-click/provide-default-db
Merge into: lp:unity-scope-click/devel
Prerequisite: lp:~stolowski/unity-scope-click/populate-departments-db
Diff against target: 124 lines (+53/-2)
7 files modified
data/CMakeLists.txt (+10/-0)
data/click-scope-departments-db.conf.in (+9/-0)
debian/control (+26/-1)
debian/unity-scope-click-departmentsdb.install (+2/-0)
debian/unity-scope-click-init-departments.install (+1/-0)
debian/unity-scope-click.install (+3/-1)
tools/init-departments/CMakeLists.txt (+2/-0)
To merge this branch: bzr merge lp:~stolowski/unity-scope-click/provide-default-db
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Alejandro J. Cura (community) Approve
Review via email: mp+226849@code.launchpad.net

Commit message

Provide default departments db and an upstart job that copies it to user's home directory (unless it's there already). Added new deb packages.

Description of the change

Provide default departments db and an upstart job that copies it to user's home directory (unless it's there already). Added new deb packages.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alejandro J. Cura (alecu) wrote :

Looks good.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Autolanding.
No commit message was specified in the merge proposal. Hit 'Add commit message' on the merge proposal web page or follow the link below. You can approve the merge proposal yourself to rerun.
https://code.launchpad.net/~stolowski/unity-scope-click/provide-default-db/+merge/226849/+edit-commit-message

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/CMakeLists.txt'
2--- data/CMakeLists.txt 2014-07-04 13:10:05 +0000
3+++ data/CMakeLists.txt 2014-07-17 11:23:47 +0000
4@@ -14,6 +14,11 @@
5 ${APPS_INI_TARGET}.in
6 )
7
8+# upstart job for default departments db
9+set(DEPARTMENTS_UPSTART_JOB click-scope-departments-db.conf)
10+configure_file(${DEPARTMENTS_UPSTART_JOB}.in ${DEPARTMENTS_UPSTART_JOB} @ONLY)
11+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DEPARTMENTS_UPSTART_JOB} DESTINATION ${CMAKE_INSTALL_DATADIR}/upstart/sessions)
12+
13 add_custom_target(${STORE_INI_TARGET} ALL
14 COMMENT "Merging translations into ${STORE_INI_TARGET}"
15 COMMAND LC_ALL=C ${INTLTOOL_MERGE} -d -u ${CMAKE_SOURCE_DIR}/po ${STORE_INI_TARGET}.in ${STORE_INI_TARGET} >/dev/null
16@@ -35,6 +40,11 @@
17 )
18
19 install(
20+ FILES departments.db
21+ DESTINATION "${APPS_DATA_DIR}"
22+)
23+
24+install(
25 FILES "${CMAKE_CURRENT_BINARY_DIR}/${STORE_INI_TARGET}"
26 DESTINATION "${STORE_LIB_DIR}"
27 )
28
29=== added file 'data/click-scope-departments-db.conf.in'
30--- data/click-scope-departments-db.conf.in 1970-01-01 00:00:00 +0000
31+++ data/click-scope-departments-db.conf.in 2014-07-17 11:23:47 +0000
32@@ -0,0 +1,9 @@
33+description "Default Click Departments Database"
34+author "Pawel Stolowski <pawel.stolowski@canonical.com>"
35+
36+start on starting unity8
37+
38+script
39+ DB_FILE=@APPS_DATA_DIR@/departments.db
40+ [ -f $HOME/.cache/click-departments.db ] || cp $DB_FILE $HOME/.cache/click-departments.db
41+end script
42
43=== added file 'data/departments.db'
44Binary files data/departments.db 1970-01-01 00:00:00 +0000 and data/departments.db 2014-07-17 11:23:47 +0000 differ
45=== modified file 'debian/control'
46--- debian/control 2014-07-11 21:56:59 +0000
47+++ debian/control 2014-07-17 11:23:47 +0000
48@@ -30,7 +30,8 @@
49 ubuntu-app-launch-tools,
50 ubuntu-download-manager,
51 ubuntu-sdk-libs,
52- sqlite3 (>= 3.8.5),
53+ libsqlite3-0 (>= 3.8.5),
54+ unity-scope-click-departmentsdb (= ${binary:Version}),
55 ${misc:Depends},
56 ${shlibs:Depends},
57 Breaks: unity (<< 7.0),
58@@ -41,6 +42,30 @@
59 .
60 This package provides the click scope.
61
62+Package: unity-scope-click-init-departments
63+Architecture: armhf i386 amd64
64+Depends: libsqlite3-0 (>= 3.8.5),
65+ ${misc:Depends},
66+ ${shlibs:Depends},
67+Breaks: unity (<< 7.0),
68+Description: Click Scope Utility for Initialization of Departments
69+ The click scope init-departments initializes or updates the internal database
70+ of departments for installed applications. This tool is for click scope developers
71+ and for customizations of ubuntu-touch image. It's not meant to be used by end users.
72+ .
73+ This package provides the helper init-departments tool.
74+
75+Package: unity-scope-click-departmentsdb
76+Architecture: all
77+Depends: ${misc:Depends},
78+ ${shlibs:Depends},
79+Breaks: unity (<< 7.0),
80+Description: Click Scope Departments Database
81+ The click scope departments database provide the initial departments data for
82+ preinstalled (default) applications.
83+ .
84+ This package provides departments database for preinstalled applications.
85+
86 Package: unity-scope-click-autopilot
87 Architecture: all
88 Depends: libautopilot-qt (>= 1.4),
89
90=== added file 'debian/unity-scope-click-departmentsdb.install'
91--- debian/unity-scope-click-departmentsdb.install 1970-01-01 00:00:00 +0000
92+++ debian/unity-scope-click-departmentsdb.install 2014-07-17 11:23:47 +0000
93@@ -0,0 +1,2 @@
94+usr/share/unity/scopes/clickapps/departments.db
95+usr/share/upstart/sessions/*.conf
96
97=== added file 'debian/unity-scope-click-init-departments.install'
98--- debian/unity-scope-click-init-departments.install 1970-01-01 00:00:00 +0000
99+++ debian/unity-scope-click-init-departments.install 2014-07-17 11:23:47 +0000
100@@ -0,0 +1,1 @@
101+usr/sbin/init-departments
102
103=== modified file 'debian/unity-scope-click.install'
104--- debian/unity-scope-click.install 2014-07-07 10:32:36 +0000
105+++ debian/unity-scope-click.install 2014-07-17 11:23:47 +0000
106@@ -1,5 +1,7 @@
107 usr/lib/*/unity-scopes/*
108 usr/lib/unity-scope-click/*
109-usr/share/unity/scopes/*
110+usr/share/unity/scopes/clickstore/*
111+usr/share/unity/scopes/clickapps/*jpg
112+usr/share/unity/scopes/clickapps/*svg
113 usr/share/glib-2.0/schemas/*
114 usr/share/locale/*/LC_MESSAGES/unity-scope-click.mo
115
116=== modified file 'tools/init-departments/CMakeLists.txt'
117--- tools/init-departments/CMakeLists.txt 2014-07-08 13:23:12 +0000
118+++ tools/init-departments/CMakeLists.txt 2014-07-17 11:23:47 +0000
119@@ -17,3 +17,5 @@
120 target_link_libraries(${INITDEPTS}
121 ${SCOPE_LIB_NAME}
122 )
123+
124+install(TARGETS ${INITDEPTS} DESTINATION sbin)

Subscribers

People subscribed via source and target branches

to all changes: