aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-07-14 02:59:02 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-07-14 03:11:12 +0100
commit7b5c57442b295a7930b80f1e14085b2ebeb848ea (patch)
tree9ca2f4842e3c9abb5bcd3778512c254a5be2d2dc
parent4143de469d180770243d5a2f7c5c9a9c0794088a (diff)
downloadpaludis-7b5c57442b295a7930b80f1e14085b2ebeb848ea.tar.gz
paludis-7b5c57442b295a7930b80f1e14085b2ebeb848ea.tar.xz
Move to a single PackageID 'origin' key.
Don't try to distinguish between source and binary origins. It gets too messy. Instead, have a single key holding all repositories that could be considered an 'origin' of some kind.
-rw-r--r--paludis/package_id.hh13
1 files changed, 4 insertions, 9 deletions
diff --git a/paludis/package_id.hh b/paludis/package_id.hh
index 54aaaa0..34a0e0b 100644
--- a/paludis/package_id.hh
+++ b/paludis/package_id.hh
@@ -257,16 +257,11 @@ namespace paludis
virtual const std::tr1::shared_ptr<const MetadataTimeKey> installed_time_key() const = 0;
/**
- * The source_origin_key, if non-zero, contains a string describing
- * the source repository whence a package originated.
+ * The from_repositories key, if non-zero, contains the set of repositories
+ * that the ID is 'from'. An ID can be 'from' multiple repositories if, for
+ * example, it was built via a binary package.
*/
- virtual const std::tr1::shared_ptr<const MetadataValueKey<std::string> > source_origin_key() const = 0;
-
- /**
- * The binary_origin_key, if non-zero, contains a string describing
- * the binary repository whence a package originated.
- */
- virtual const std::tr1::shared_ptr<const MetadataValueKey<std::string> > binary_origin_key() const = 0;
+ virtual const std::tr1::shared_ptr<const MetadataCollectionKey<Set<std::string> > > from_repositories_key() const = 0;
/**
* The fs_location_key, if non-zero, indicates the filesystem