aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-05-01 16:45:08 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-05-01 16:45:08 +0000
commit9963bab98bb429eb7339e72a8edfe9692c09633c (patch)
treece682fac9731c8111f559d6d77dc13aefbe23cb4
parentde162a936016eb0fff6734a9436418e35bdd60ca (diff)
downloadpaludis-9963bab98bb429eb7339e72a8edfe9692c09633c.tar.gz
paludis-9963bab98bb429eb7339e72a8edfe9692c09633c.tar.xz
Don't include the ::repo in --best-version output, it confuses built_with_use
-rw-r--r--src/applets.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/applets.cc b/src/applets.cc
index 5654403..05d39a7 100644
--- a/src/applets.cc
+++ b/src/applets.cc
@@ -64,7 +64,13 @@ int do_best_version()
if (entries->empty())
return_code = 1;
else
- std::cout << *(entries->last()) << std::endl;
+ {
+ // don't include repo, it breaks built_with_use and the like.
+ std::string entry(
+ stringify(entries->last()->get<p::pde_name>()) + "-" +
+ stringify(entries->last()->get<p::pde_version>()));
+ std::cout << entry << std::endl;
+ }
return return_code;
}