Merge lp:~mordred/nova/fix-locale into lp:~ubuntu-server-dev/nova/essex

Proposed by Monty Taylor
Status: Merged
Approved by: Chuck Short
Approved revision: 310
Merge reported by: Chuck Short
Merged at revision: not available
Proposed branch: lp:~mordred/nova/fix-locale
Merge into: lp:~ubuntu-server-dev/nova/essex
Diff against target: 48 lines (+19/-1)
2 files modified
debian/changelog (+4/-1)
debian/rules (+15/-0)
To merge this branch: bzr merge lp:~mordred/nova/fix-locale
Reviewer Review Type Date Requested Status
Chuck Short (community) Approve
Review via email: mp+93665@code.launchpad.net

Description of the change

We moved to using Babel for i18n, so we need to move some locale files.

To post a comment you must log in.
Revision history for this message
Chuck Short (zulcss) wrote :

Monty,

Thanks for this, however since the branch was already released I started a new changelog entry and put the entry in the new changelog entry.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-02-17 16:02:15 +0000
3+++ debian/changelog 2012-02-17 23:29:19 +0000
4@@ -16,7 +16,10 @@
5 * Temporarily disable console patch. (LP: #932787)
6 * New usptream version.
7
8- -- Chuck Short <zulcss@ubuntu.com> Fri, 17 Feb 2012 11:02:12 -0500
9+ [ Monty Taylor ]
10+ * Move files from nova/locale to /usr/share/locale
11+
12+ -- Monty Taylor <mordred@inaugust.com> Fri, 17 Feb 2012 15:25:50 -0800
13
14 nova (2012.1~e4~20120210.12574-0ubuntu1) precise; urgency=low
15
16
17=== modified file 'debian/rules'
18--- debian/rules 2012-02-13 17:01:11 +0000
19+++ debian/rules 2012-02-17 23:29:19 +0000
20@@ -3,6 +3,10 @@
21 # Verbose mode
22 #export DH_VERBOSE=1
23
24+PACKAGE_NAME=python-nova
25+PACKAGE_DIR=$(CURDIR)/debian/$(PACKAGE_NAME)
26+SITE_PACKAGES_DIR=$(PACKAGE_DIR)$(call py_libdir,$(shell pyversions -d))
27+
28 # Lucid does not have dh_python2, but we would like to be able to use this
29 # rules file to build on lucid as well. Thus the branching logic.
30 WITH_PYTHON2 = $(shell test -f /usr/bin/dh_python2 && echo "--with python2")
31@@ -54,6 +58,17 @@
32
33 override_dh_install:
34 dh_install
35+ set -e; \
36+ for lang in `find $(SITE_PACKAGES_DIR)/nova/locale\
37+ -maxdepth 1 -mindepth 1 -type d -printf "%f "`;\
38+ do\
39+ mkdir -p $(PACKAGE_DIR)/usr/share/locale/$$lang/LC_MESSAGES;\
40+ mv $(SITE_PACKAGES_DIR)/nova/locale/$$lang/LC_MESSAGES/nova.mo\
41+ $(PACKAGE_DIR)/usr/share/locale/$$lang/LC_MESSAGES;\
42+ rm -rf $(SITE_PACKAGES_DIR)/nova/locale/$$lang;\
43+ done
44+ rm -f $(SITE_PACKAGES_DIR)/nova/locale/nova.pot
45+
46 chmod 440 $(CURDIR)/debian/nova-common/etc/sudoers.d/nova_sudoers
47 install -D -m 0664 $(CURDIR)/debian/nova-volume.default $(CURDIR)/debian/nova-volume/etc/default/nova-volume
48 for hypervisor in qemu kvm xen uml lxc; do \

Subscribers

People subscribed via source and target branches