aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/spec_rewriter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/resolver/spec_rewriter.cc')
-rw-r--r--paludis/resolver/spec_rewriter.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/paludis/resolver/spec_rewriter.cc b/paludis/resolver/spec_rewriter.cc
index 4b06747bc..cdcba315f 100644
--- a/paludis/resolver/spec_rewriter.cc
+++ b/paludis/resolver/spec_rewriter.cc
@@ -136,7 +136,9 @@ SpecRewriter::rewrite_if_special(const PackageOrBlockDepSpec & s, const std::sha
std::string::size_type p(prefix.find_first_not_of('!'));
if (std::string::npos != p)
prefix.erase(p);
- result->specs()->push_back(BlockDepSpec(prefix + stringify(spec), spec, s.if_block()->block_kind()));
+ BlockDepSpec b(prefix + stringify(spec), spec, s.if_block()->block_kind());
+ b.set_annotations(s.if_block()->maybe_annotations());
+ result->specs()->push_back(b);
}
return result;