v2:
Update for removed 'usiing namespace std'
return std::string();
}
+static bool
+hasLDesc(packageversion const &pkg)
+{
+ return pkg.LDesc().size();
+}
+
+const std::string
+packagemeta::LDesc () const
+{
+ std::set<packageversion>::iterator i = find_if (versions.begin(), versions.end(), hasLDesc);
+ if (i == versions.end())
+ return std::string();
+ return i->LDesc ();
+};
+
/* Return an appropriate caption given the current action. */
std::string
packagemeta::action_caption () const
bool isManuallyWanted() const;
/* true if package was deleted on command-line. */
bool isManuallyDeleted() const;
- /* SDesc is global in theory, across all package versions.
- LDesc is not: it can be different per version */
+
const std::string SDesc () const;
+ const std::string LDesc () const;
+
/* what categories does this package belong in. Note that if multiple versions
* of a package disagree.... the first one read in will take precedence.
*/