diff options
| author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-10-06 02:40:20 +0000 |
|---|---|---|
| committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-10-06 02:40:20 +0000 |
| commit | 30f68908ef8efdfead1ba499aaabdb2133b0e63f (patch) | |
| tree | 2dc362163f3da202aadfac28f00d6bd6639d0b96 | |
| parent | f28d8195540cad33b455e4b2bce385003a40eb04 (diff) | |
| download | busybox-w32-30f68908ef8efdfead1ba499aaabdb2133b0e63f.tar.gz busybox-w32-30f68908ef8efdfead1ba499aaabdb2133b0e63f.tar.bz2 busybox-w32-30f68908ef8efdfead1ba499aaabdb2133b0e63f.zip | |
Another part of Stafan's latest patch, when replacing a pre-existing package set its status correctly.
| -rw-r--r-- | archival/dpkg.c | 2 | ||||
| -rw-r--r-- | dpkg.c | 2 |
2 files changed, 4 insertions, 0 deletions
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) | |||
| 1420 | * is written to the status file*/ | 1420 | * is written to the status file*/ |
| 1421 | status_node->status = search_name_hashtable("install reinstreq not-installed"); | 1421 | status_node->status = search_name_hashtable("install reinstreq not-installed"); |
| 1422 | status_hashtable[status_num] = status_node; | 1422 | status_hashtable[status_num] = status_node; |
| 1423 | } else { | ||
| 1424 | status_hashtable[status_num]->status = search_name_hashtable("install reinstreq installed"); | ||
| 1423 | } | 1425 | } |
| 1424 | } | 1426 | } |
| 1425 | } | 1427 | } |
| @@ -1420,6 +1420,8 @@ extern int dpkg_main(int argc, char **argv) | |||
| 1420 | * is written to the status file*/ | 1420 | * is written to the status file*/ |
| 1421 | status_node->status = search_name_hashtable("install reinstreq not-installed"); | 1421 | status_node->status = search_name_hashtable("install reinstreq not-installed"); |
| 1422 | status_hashtable[status_num] = status_node; | 1422 | status_hashtable[status_num] = status_node; |
| 1423 | } else { | ||
| 1424 | status_hashtable[status_num]->status = search_name_hashtable("install reinstreq installed"); | ||
| 1423 | } | 1425 | } |
| 1424 | } | 1426 | } |
| 1425 | } | 1427 | } |
