summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_install.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-07-04 19:11:12 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-07-04 23:34:10 (EDT)
commit1f351455e2cf55306a6b0d200595b9f4ef076b6b (patch)
treead6667416e4e718ea9295e1f0fd9e74860ead46a /libopkg/opkg_install.c
parent9df48d61ef3d1654763a1142a96a7cd796f6622d (diff)
Add architecture to package control file names
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);