From 30f68908ef8efdfead1ba499aaabdb2133b0e63f Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Sat, 6 Oct 2001 02:40:20 +0000 Subject: [PATCH] Another part of Stafan's latest patch, when replacing a pre-existing package set its status correctly. --- archival/dpkg.c | 2 ++ dpkg.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/archival/dpkg.c b/archival/dpkg.c index 845cfa67b..a00697207 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c @@ -1420,6 +1420,8 @@ extern int dpkg_main(int argc, char **argv) * is written to the status file*/ status_node->status = search_name_hashtable("install reinstreq not-installed"); status_hashtable[status_num] = status_node; + } else { + status_hashtable[status_num]->status = search_name_hashtable("install reinstreq installed"); } } } diff --git a/dpkg.c b/dpkg.c index 845cfa67b..a00697207 100644 --- a/dpkg.c +++ b/dpkg.c @@ -1420,6 +1420,8 @@ extern int dpkg_main(int argc, char **argv) * is written to the status file*/ status_node->status = search_name_hashtable("install reinstreq not-installed"); status_hashtable[status_num] = status_node; + } else { + status_hashtable[status_num]->status = search_name_hashtable("install reinstreq installed"); } } } -- 2.25.1