1 |
commit: e6af93628b7715f05fdd3fe7e37918de48e2554d |
2 |
Author: Mu Qiao <qiaomuf <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 31 07:32:31 2011 +0000 |
4 |
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 1 12:15:21 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/libbash.git;a=commit;h=e6af9362 |
7 |
|
8 |
Utility: fix the order of INHERITED |
9 |
|
10 |
Portage requires INHERITED values to be sorted. Now this is fixed. |
11 |
|
12 |
--- |
13 |
utils/metadata.cpp | 5 +++++ |
14 |
1 files changed, 5 insertions(+), 0 deletions(-) |
15 |
|
16 |
diff --git a/utils/metadata.cpp b/utils/metadata.cpp |
17 |
index 600f9e4..899ef80 100644 |
18 |
--- a/utils/metadata.cpp |
19 |
+++ b/utils/metadata.cpp |
20 |
@@ -93,6 +93,11 @@ void write_metadata(std::ostream& output, |
21 |
value, |
22 |
boost::is_any_of(" \t\n"), |
23 |
boost::token_compress_on); |
24 |
+ |
25 |
+ // INHERITED eclasses should be sorted |
26 |
+ if(*iter_name == "INHERITED") |
27 |
+ sort(splitted_value.begin(), splitted_value.end()); |
28 |
+ |
29 |
using namespace boost::spirit::karma; |
30 |
output << format(string % ' ', splitted_value) << std::endl; |
31 |
} |