diff --git a/lib/findpkg.c b/lib/findpkg.c index f95a810245b..7b6b0cc8fb6 100644 --- a/lib/findpkg.c +++ b/lib/findpkg.c @@ -319,7 +319,7 @@ xbps_prepare_pkg(const char *pkgname) goto out; } prop_dictionary_set_cstring(pkgrd, "repository", repoloc); - prop_dictionary_set_cstring(pkgrd, "origin", pkgname); + prop_dictionary_set_cstring(pkg_props, "origin", pkgname); /* * Check if this package needs dependencies.