From: Michael Tremer Date: Wed, 16 Aug 2023 15:41:37 +0000 (+0000) Subject: package: Use the correct attribute for directories in the SOLV database X-Git-Tag: 0.9.29~77 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a98600fba4d5e3a7cc85582b2120d370d7ca7ade;p=pakfire.git package: Use the correct attribute for directories in the SOLV database Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/package.c b/src/libpakfire/package.c index 2658a7d6a..c2984a07a 100644 --- a/src/libpakfire/package.c +++ b/src/libpakfire/package.c @@ -509,8 +509,7 @@ PAKFIRE_EXPORT const char* pakfire_package_get_string( if (!filename) return NULL; - // XXX should be MEDIADIR - const char* dir = solvable_lookup_str(s, SOLVABLE_MEDIABASE); + const char* dir = solvable_lookup_str(s, SOLVABLE_MEDIADIR); if (dir) { r = pakfire_string_format(pkg->path, "%s/%s", dir, filename); if (r) @@ -674,11 +673,10 @@ PAKFIRE_EXPORT int pakfire_package_set_string( else solvable_unset(s, SOLVABLE_MEDIAFILE); - // XXX this should be MEDIADIR if (dirname) - solvable_set_str(s, SOLVABLE_MEDIABASE, dirname); + solvable_set_str(s, SOLVABLE_MEDIADIR, dirname); else - solvable_unset(s, SOLVABLE_MEDIABASE); + solvable_unset(s, SOLVABLE_MEDIADIR); // Cache the path pakfire_string_set(pkg->path, value);