Another part of Stafan's latest patch, when replacing a pre-existing package set its status correctly.

This commit is contained in:
Glenn L McGrath 2001-10-06 02:40:20 +00:00
parent f28d819554
commit 30f68908ef
2 changed files with 4 additions and 0 deletions

View File

@ -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
dpkg.c
View File

@ -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");
}
}
}