Merge lp:~dobey/unity-scope-click/purchase-script into lp:unity-scope-click/devel

Proposed by dobey
Status: Merged
Approved by: Ted Gould
Approved revision: 399
Merged at revision: 399
Proposed branch: lp:~dobey/unity-scope-click/purchase-script
Merge into: lp:unity-scope-click/devel
Diff against target: 76 lines (+48/-2)
3 files modified
bin/CMakeLists.txt (+1/-1)
bin/enable-purchases (+44/-0)
debian/control (+3/-1)
To merge this branch: bzr merge lp:~dobey/unity-scope-click/purchase-script
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Ted Gould (community) Approve
Diego Sarmentero (community) Approve
Review via email: mp+230828@code.launchpad.net

Commit message

Add a script to enable purchases in the scope.

To post a comment you must log in.
Revision history for this message
Diego Sarmentero (diegosarmentero) wrote :

+1

review: Approve
399. By dobey

Add libglib2.0-bin and upstart-bin to dependencies, for the script.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ted Gould (ted) wrote :

+1

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/CMakeLists.txt'
2--- bin/CMakeLists.txt 2014-06-20 20:00:53 +0000
3+++ bin/CMakeLists.txt 2014-08-14 17:07:56 +0000
4@@ -1,1 +1,1 @@
5-install(PROGRAMS install-helper DESTINATION lib/unity-scope-click/)
6+install(PROGRAMS install-helper enable-purchases DESTINATION lib/unity-scope-click/)
7
8=== added file 'bin/enable-purchases'
9--- bin/enable-purchases 1970-01-01 00:00:00 +0000
10+++ bin/enable-purchases 2014-08-14 17:07:56 +0000
11@@ -0,0 +1,44 @@
12+#!/bin/sh
13+#
14+# Copyright (C) 2014 Canonical Ltd.
15+#
16+# This program is free software: you can redistribute it and/or modify it
17+# under the terms of the GNU General Public License version 3, as published
18+# by the Free Software Foundation.
19+#
20+# This program is distributed in the hope that it will be useful, but
21+# WITHOUT ANY WARRANTY; without even the implied warranties of
22+# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
23+# PURPOSE. See the GNU General Public License for more details.
24+#
25+# You should have received a copy of the GNU General Public License along
26+# with this program. If not, see <http://www.gnu.org/licenses/>.
27+#
28+# In addition, as a special exception, the copyright holders give
29+# permission to link the code of portions of this program with the
30+# OpenSSL library under certain conditions as described in each
31+# individual source file, and distribute linked combinations
32+# including the two.
33+# You must obey the GNU General Public License in all respects
34+# for all of the code used other than OpenSSL. If you modify
35+# file(s) with this exception, you may extend this exception to your
36+# version of the file(s), but you are not obligated to do so. If you
37+# do not wish to do so, delete this exception statement from your
38+# version. If you delete this exception statement from all source
39+# files in the program, then also delete it here.
40+#
41+set -e
42+
43+CLICK_STORE_ENABLE_PURCHASES=1
44+
45+/sbin/initctl set-env --global CLICK_STORE_ENABLE_PURCHASES=$CLICK_STORE_ENABLE_PURCHASES
46+
47+gdbus call --session \
48+ --dest org.freedesktop.DBus \
49+ --object-path / \
50+ --method org.freedesktop.DBus.UpdateActivationEnvironment \
51+ "[{'CLICK_STORE_ENABLE_PURCHASES', '$CLICK_STORE_ENABLE_PURCHASES'}]"
52+
53+/sbin/restart scope-registry
54+
55+echo "Purchases enabled and scope-registry restarted."
56
57=== modified file 'debian/control'
58--- debian/control 2014-08-01 15:04:19 +0000
59+++ debian/control 2014-08-14 17:07:56 +0000
60@@ -30,13 +30,15 @@
61 Package: unity-scope-click
62 Architecture: armhf i386 amd64
63 Depends: account-plugin-ubuntuone,
64+ libglib2.0-bin,
65+ libsqlite3-0 (>= 3.8.5),
66 packagekit-tools,
67 pay-service,
68 ubuntu-app-launch-tools,
69 ubuntu-download-manager,
70 ubuntu-sdk-libs,
71- libsqlite3-0 (>= 3.8.5),
72 unity-scope-click-departmentsdb (= ${binary:Version}),
73+ upstart-bin,
74 ${misc:Depends},
75 ${shlibs:Depends},
76 Breaks: unity (<< 7.0),

Subscribers

People subscribed via source and target branches

to all changes: