aboutsummaryrefslogtreecommitdiff
path: root/load
diff options
context:
space:
mode:
Diffstat (limited to 'load')
-rw-r--r--load/load.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/load/load.cxx b/load/load.cxx
index ca7c6c7..1875f2a 100644
--- a/load/load.cxx
+++ b/load/load.cxx
@@ -402,9 +402,14 @@ load_packages (const shared_ptr<repository>& rp, database& db)
move (pd.constraint)});
}
+ // Cache before the package name is moved.
+ //
+ package_name project (pm.effective_project ());
+
p = make_shared<package> (
move (pm.name),
move (pm.version),
+ move (project),
pm.priority ? move (*pm.priority) : priority (),
move (pm.summary),
move (pm.license_alternatives),