1 |
commit: 1843d7f56d682003b09189c142899b2550427a28 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 5 21:27:35 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 5 21:27:35 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=1843d7f5 |
7 |
|
8 |
tests/emerge: test directory with latin-1 enc |
9 |
|
10 |
--- |
11 |
pym/portage/tests/emerge/test_simple.py | 6 ++++-- |
12 |
1 files changed, 4 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/pym/portage/tests/emerge/test_simple.py b/pym/portage/tests/emerge/test_simple.py |
15 |
index 1afa047..00c395d 100644 |
16 |
--- a/pym/portage/tests/emerge/test_simple.py |
17 |
+++ b/pym/portage/tests/emerge/test_simple.py |
18 |
@@ -33,8 +33,10 @@ src_install() { |
19 |
# some conditions. TODO: Find out why it transforms to \\xef\\xbf\\xbd when |
20 |
# running tests for Python 3.2 (even though it's bash that is ultimately |
21 |
# responsible for performing the transformation). |
22 |
- echo "blah blah blah" > "${ED}"/usr/lib/${P}/latin-1-$(printf "\\xa9")-regular-file || die |
23 |
- ln -s latin-1-$(printf "\\xa9")-regular-file "${ED}"/usr/lib/${P}/latin-1-$(printf "\\xa9")-symlink || die |
24 |
+ local latin_1_dir=${ED}/usr/lib/${P}/latin-1-$(printf "\\xa9")-directory |
25 |
+ mkdir "${latin_1_dir}" |
26 |
+ echo "blah blah blah" > ${latin_1_dir}/latin-1-$(printf "\\xa9")-regular-file || die |
27 |
+ ln -s latin-1-$(printf "\\xa9")-regular-file ${latin_1_dir}/latin-1-$(printf "\\xa9")-symlink || die |
28 |
} |
29 |
""" |