aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Danny van Dyk <dvandyk@exherbo.org> 2007-01-10 17:40:47 +0000
committerAvatar Danny van Dyk <dvandyk@exherbo.org> 2007-01-10 17:40:47 +0000
commit1133e6cd340d1fdec153b83f925a51ffb723f9e2 (patch)
treed5a32031b28cda49b4e9e7f37e6367823435d4a6
parent179fadb0fa8406e089c4df478c017acdaf50edc4 (diff)
downloadpaludis-1133e6cd340d1fdec153b83f925a51ffb723f9e2.tar.gz
paludis-1133e6cd340d1fdec153b83f925a51ffb723f9e2.tar.xz
Fix creation of PackageDepAtoms when --*-version argument is provided.
-rw-r--r--src/clients/contrarius/stage.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clients/contrarius/stage.cc b/src/clients/contrarius/stage.cc
index c6f755a..c2baff5 100644
--- a/src/clients/contrarius/stage.cc
+++ b/src/clients/contrarius/stage.cc
@@ -34,7 +34,7 @@ namespace
const std::string & default_name,
const std::string & version)
{
- return new PackageDepAtom("cross-" + stringify(target) + "/"
+ return new PackageDepAtom(std::string(version.empty() ? "" : "=") + "cross-" + stringify(target) + "/"
+ (name.empty() ? default_name : name) + (version.empty() ? "" : "-" + version));
}
}