aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-01-26 23:35:53 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-01-26 23:35:53 +0000
commit8bd9839a8c5cca312c61147bec0d2cf05f824dfc (patch)
tree3bf89545970f8581194aca53007b4787972b4d5c
parent040ceac6eddc286ed9b586e6c42be7606f76a2c8 (diff)
downloadpaludis-8bd9839a8c5cca312c61147bec0d2cf05f824dfc.tar.gz
paludis-8bd9839a8c5cca312c61147bec0d2cf05f824dfc.tar.xz
Fix raw_text for revisions
-rw-r--r--paludis/version_spec.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/version_spec.cc b/paludis/version_spec.cc
index ed706a7..2b36dc1 100644
--- a/paludis/version_spec.cc
+++ b/paludis/version_spec.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2005, 2006, 2007, 2008 Ciaran McCreesh
+ * Copyright (c) 2005, 2006, 2007, 2008, 2009 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -214,7 +214,7 @@ VersionSpec::VersionSpec(const std::string & text) :
/* Are we -r */
bool empty(number_str.empty());
- std::string raw_text(first_revision ? "" : ".");
+ std::string raw_text(first_revision ? "-r" : ".");
raw_text.append(number_str);
number_str = strip_leading(number_str, "0");