diff options
Diffstat (limited to 'archival/dpkg.c')
-rw-r--r-- | archival/dpkg.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index 9f58b54e6..7187ad6a0 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c | |||
@@ -858,8 +858,9 @@ static void write_status_file(deb_file_t **deb_file) | |||
858 | if (field_name == NULL) { | 858 | if (field_name == NULL) { |
859 | break; | 859 | break; |
860 | } | 860 | } |
861 | if ((strcmp(field_name, "Priority") == 0) || | 861 | if ((strcmp(field_name, "Priority") == 0) |
862 | (strcmp(field_name, "Section") == 0)) { | 862 | || (strcmp(field_name, "Section") == 0) |
863 | ) { | ||
863 | fprintf(new_status_file, "%s: %s\n", field_name, field_value); | 864 | fprintf(new_status_file, "%s: %s\n", field_name, field_value); |
864 | } | 865 | } |
865 | } | 866 | } |
@@ -1079,8 +1080,9 @@ static int check_deps(deb_file_t **deb_file, int deb_start /*, int dep_max_count | |||
1079 | 1080 | ||
1080 | package_num = search_package_hashtable(package_edge->name, package_edge->version, package_edge->operator); | 1081 | package_num = search_package_hashtable(package_edge->name, package_edge->version, package_edge->operator); |
1081 | 1082 | ||
1082 | if (package_edge->type == EDGE_PRE_DEPENDS || | 1083 | if (package_edge->type == EDGE_PRE_DEPENDS |
1083 | package_edge->type == EDGE_DEPENDS) { | 1084 | || package_edge->type == EDGE_DEPENDS |
1085 | ) { | ||
1084 | int result=1; | 1086 | int result=1; |
1085 | status_num = 0; | 1087 | status_num = 0; |
1086 | 1088 | ||