summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_install.c
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/opkg_install.c')
-rw-r--r--libopkg/opkg_install.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c
index 0ff7705..f850b4c 100644
--- a/libopkg/opkg_install.c
+++ b/libopkg/opkg_install.c
@@ -1046,7 +1046,11 @@ install_maintainer_scripts(pkg_t *pkg, pkg_t *old_pkg)
int ret;
char *prefix;
+#ifdef HAVE_MULTIARCH
+ sprintf_alloc(&prefix, "%s:%s.", pkg->name, pkg->architecture);
+#else
sprintf_alloc(&prefix, "%s.", pkg->name);
+#endif
ret = pkg_extract_control_files_to_dir_with_prefix(pkg,
pkg->dest->info_dir,
prefix);