diff options
author | Alec Warner <antarus@gentoo.org> | 2018-01-17 10:16:52 -0500 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2018-01-17 10:16:52 -0500 |
commit | e8c4d6710afff52c5250c2631a18026e992d78ee (patch) | |
tree | 80bac2ec9bdeeceeabeae60aa0067cb26fedb838 /lib/kkuleomi | |
parent | Allow env control of elasticsearch debugging. (diff) | |
download | packages-5-e8c4d6710afff52c5250c2631a18026e992d78ee.tar.gz packages-5-e8c4d6710afff52c5250c2631a18026e992d78ee.tar.bz2 packages-5-e8c4d6710afff52c5250c2631a18026e992d78ee.zip |
Drop parent / child relation in version.
ES6's multiple indexes (as opposed to a single index) mean we cannot
use this relation. Instead we key versions off of package atoms.
Diffstat (limited to 'lib/kkuleomi')
-rw-r--r-- | lib/kkuleomi/store/model.rb | 1 | ||||
-rw-r--r-- | lib/kkuleomi/store/models/version_import.rb | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/kkuleomi/store/model.rb b/lib/kkuleomi/store/model.rb index 80680d0..9d8f5d5 100644 --- a/lib/kkuleomi/store/model.rb +++ b/lib/kkuleomi/store/model.rb @@ -39,7 +39,6 @@ module Kkuleomi::Store::Model term: { package: package } } }, - must: { match_all: {} } } )) end diff --git a/lib/kkuleomi/store/models/version_import.rb b/lib/kkuleomi/store/models/version_import.rb index b4e4caf..7fd6273 100644 --- a/lib/kkuleomi/store/models/version_import.rb +++ b/lib/kkuleomi/store/models/version_import.rb @@ -38,7 +38,7 @@ module Kkuleomi::Store::Models::VersionImport self.masks = Portage::Util::Masks.for(ebuild_model) self.metadata_hash = ebuild_model.metadata_hash - save(parent: parent_package.id) + save() # If keywords changed, calculate changes and record as needed (but only do that if we should) unless options[:suppress_change_objects] |