diff options
Diffstat (limited to 'archival/dpkg.c')
-rw-r--r-- | archival/dpkg.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index b55822460..825a8c1d2 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c | |||
@@ -878,7 +878,8 @@ static void write_status_file(deb_file_t **deb_file) | |||
878 | /* remove trailing \n's */ | 878 | /* remove trailing \n's */ |
879 | write_buffer_no_status(new_status_file, deb_file[i]->control_file); | 879 | write_buffer_no_status(new_status_file, deb_file[i]->control_file); |
880 | set_status(status_num, "ok", 2); | 880 | set_status(status_num, "ok", 2); |
881 | fprintf(new_status_file, "Status: %s\n\n", name_hashtable[status_hashtable[status_num]->status]); | 881 | fprintf(new_status_file, "Status: %s\n\n", |
882 | name_hashtable[status_hashtable[status_num]->status]); | ||
882 | write_flag = TRUE; | 883 | write_flag = TRUE; |
883 | break; | 884 | break; |
884 | } | 885 | } |
@@ -886,7 +887,9 @@ static void write_status_file(deb_file_t **deb_file) | |||
886 | } | 887 | } |
887 | /* This is temperary, debugging only */ | 888 | /* This is temperary, debugging only */ |
888 | if (deb_file[i] == NULL) { | 889 | if (deb_file[i] == NULL) { |
889 | bb_error_msg_and_die("ALERT: Couldnt find a control file, your status file may be broken, status may be incorrect for %s", package_name); | 890 | bb_error_msg_and_die("ALERT: cannot find a control file, " |
891 | "your status file may be broken, status may be " | ||
892 | "incorrect for %s", package_name); | ||
890 | } | 893 | } |
891 | } | 894 | } |
892 | else if (strcmp("not-installed", name_hashtable[state_status]) == 0) { | 895 | else if (strcmp("not-installed", name_hashtable[state_status]) == 0) { |
@@ -963,7 +966,8 @@ static void write_status_file(deb_file_t **deb_file) | |||
963 | } | 966 | } |
964 | 967 | ||
965 | if (rename("/var/lib/dpkg/status.udeb", "/var/lib/dpkg/status") == -1) { | 968 | if (rename("/var/lib/dpkg/status.udeb", "/var/lib/dpkg/status") == -1) { |
966 | bb_error_msg_and_die("DANGER: Cannot create status file, you need to manually repair your status file"); | 969 | bb_error_msg_and_die("DANGER: cannot create status file, " |
970 | "you need to manually repair your status file"); | ||
967 | } | 971 | } |
968 | } | 972 | } |
969 | 973 | ||