summaryrefslogtreecommitdiff
path: root/src/unpack.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2015-05-17 19:41:00 +0200
committerGuillem Jover <guillem@debian.org>2015-05-18 06:25:12 +0200
commit6289376d25637a55e468d154c8c4e78aa26f1f30 (patch)
treea5f94ba79e7221fbe45191b21fad6d6d6c9f9215 /src/unpack.c
parent8f28c5172ce9c1a765222311afabbefb5a9bf1d5 (diff)
downloaddpkg-6289376d25637a55e468d154c8c4e78aa26f1f30.tar.gz
dpkg: When upgrading, copy over the cached arch-qualified package name
We need to make sure that the cached arch-qualified package name is updated too, or we might end up with the wrong arch-qualified package name on cross-upgrades.
Diffstat (limited to 'src/unpack.c')
-rw-r--r--src/unpack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unpack.c b/src/unpack.c
index 23bdd20df..236d7ffb3 100644
--- a/src/unpack.c
+++ b/src/unpack.c
@@ -1239,6 +1239,7 @@ void process_archive(const char *filename) {
pkg->installed.maintainer= pkg->available.maintainer;
pkg->installed.source= pkg->available.source;
pkg->installed.arch = pkg->available.arch;
+ pkg->installed.pkgname_archqual = pkg->available.pkgname_archqual;
pkg->installed.installedsize= pkg->available.installedsize;
pkg->installed.version= pkg->available.version;
pkg->installed.origin = pkg->available.origin;