Merge lp:~dobey/unity-scope-click/initdb-readme into lp:unity-scope-click

Proposed by dobey
Status: Merged
Approved by: dobey
Approved revision: 478
Merged at revision: 476
Proposed branch: lp:~dobey/unity-scope-click/initdb-readme
Merge into: lp:unity-scope-click
Diff against target: 35 lines (+21/-5)
1 file modified
tools/init-departments/README (+21/-5)
To merge this branch: bzr merge lp:~dobey/unity-scope-click/initdb-readme
Reviewer Review Type Date Requested Status
Charles Kerr (community) Approve
unity-api-1-bot continuous-integration Approve
Review via email: mp+306135@code.launchpad.net

Commit message

Update the README for init-departments tool.

To post a comment you must log in.
Revision history for this message
unity-api-1-bot (unity-api-1-bot) wrote :

PASSED: Continuous integration, rev:476
https://jenkins.canonical.com/unity-api-1/job/lp-unity-scope-click-ci/108/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build/683
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-0-fetch/689
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=vivid+overlay/502
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=vivid+overlay/502/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=xenial+overlay/502
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=xenial+overlay/502/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=yakkety/502
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=yakkety/502/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=vivid+overlay/502
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=vivid+overlay/502/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=xenial+overlay/502
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=xenial+overlay/502/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=yakkety/502
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=yakkety/502/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=vivid+overlay/502
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=vivid+overlay/502/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=xenial+overlay/502
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=xenial+overlay/502/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=yakkety/502
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=yakkety/502/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/unity-api-1/job/lp-unity-scope-click-ci/108/rebuild

review: Approve (continuous-integration)
Revision history for this message
unity-api-1-bot (unity-api-1-bot) wrote :

PASSED: Continuous integration, rev:477
https://jenkins.canonical.com/unity-api-1/job/lp-unity-scope-click-ci/109/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build/684
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-0-fetch/690
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=vivid+overlay/503
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=vivid+overlay/503/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=xenial+overlay/503
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=xenial+overlay/503/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=yakkety/503
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=yakkety/503/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=vivid+overlay/503
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=vivid+overlay/503/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=xenial+overlay/503
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=xenial+overlay/503/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=yakkety/503
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=yakkety/503/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=vivid+overlay/503
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=vivid+overlay/503/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=xenial+overlay/503
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=xenial+overlay/503/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=yakkety/503
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=yakkety/503/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/unity-api-1/job/lp-unity-scope-click-ci/109/rebuild

review: Approve (continuous-integration)
Revision history for this message
Charles Kerr (charlesk) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tools/init-departments/README'
2--- tools/init-departments/README 2014-07-15 14:51:03 +0000
3+++ tools/init-departments/README 2016-09-20 15:17:20 +0000
4@@ -1,10 +1,26 @@
5-This tool creates/updates the list of departments and package:department mapping
6-for currently installed apps, and stores it in a sqlite database file.
7-This db should then be put in the unity-scope-click-departmentsdb package or manually
8-copied to the location where click scope expects it to be (~/.cache/click-departments.db).
9+This tool creates/updates the list of departments and package:department
10+mapping for installed apps, and stores it in a sqlite database file.
11+This db should then be put in the unity-scope-click-departmentsdb package
12+or manually copied to the location where click scope expects it to be, such
13+as ~/.cache/click-departments.db.
14
15 Usage:
16 init-departments DBFILE LOCALE1 [LOCALE2 ...]
17
18 for example:
19-init-departments click-departments.db "" pl_PL de_DE
20+init-departments click-departments.db en_US ca_ES es_ES eu_ES gl_ES zh_CN zh_TW
21+
22+
23+To update the existing file with translations for a new language, copy
24+the existing data/departments.db file in the source tree to a new location,
25+run the tool to add translations to the new file, verify it is correct, and
26+then copy the database back to data/departments.db to create a merge proposal.
27+This will require an Internet connection, to retrieve the translations from
28+the server.
29+
30+$ cp data/departments.db deparments.db-new
31+$ init-departments deparments.db-new zh_CN
32+$ sqlite3 departments.db-new "SELECT * FROM deptnames WHERE locale LIKE 'zh_CN';"
33+$ mv departments.db-new data/departments.db
34+
35+THen you can commit, push, and propose the changes for merge into trunk.

Subscribers

People subscribed via source and target branches

to all changes: