diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-06-05 17:28:56 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-06-05 17:28:56 +0000 |
commit | 6c501a71ae50fa8f788bbc46511e8c4071e5f897 (patch) | |
tree | 18d4dc331e196f91305e244f39dac6ac03c343ce | |
parent | fa5f20755ce255c991b4852446de72c213f2b02e (diff) | |
download | busybox-w32-6c501a71ae50fa8f788bbc46511e8c4071e5f897.tar.gz busybox-w32-6c501a71ae50fa8f788bbc46511e8c4071e5f897.tar.bz2 busybox-w32-6c501a71ae50fa8f788bbc46511e8c4071e5f897.zip |
- kiltedknight writes: Busybox incorrectly parses a line from the status file, claiming that a required package is not installed or tagged to be installed when it actually is.
Closes #1221
-rw-r--r-- | archival/dpkg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index 0ab54c30e..0ca2704a1 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c | |||
@@ -413,7 +413,7 @@ static void add_split_dependencies(common_node_t *parent_node, const char *whole | |||
413 | or_edge = xmalloc(sizeof(edge_t)); | 413 | or_edge = xmalloc(sizeof(edge_t)); |
414 | or_edge->type = edge_type + 1; | 414 | or_edge->type = edge_type + 1; |
415 | or_edge->name = search_name_hashtable(field); | 415 | or_edge->name = search_name_hashtable(field); |
416 | or_edge->version = 0; // tracks the number of altenatives | 416 | or_edge->version = 0; // tracks the number of alternatives |
417 | add_edge_to_node(parent_node, or_edge); | 417 | add_edge_to_node(parent_node, or_edge); |
418 | } | 418 | } |
419 | 419 | ||
@@ -432,7 +432,7 @@ static void add_split_dependencies(common_node_t *parent_node, const char *whole | |||
432 | edge->version = search_name_hashtable("ANY"); | 432 | edge->version = search_name_hashtable("ANY"); |
433 | } else { | 433 | } else { |
434 | /* Skip leading ' ' or '(' */ | 434 | /* Skip leading ' ' or '(' */ |
435 | version += strspn(field2, " ("); | 435 | version += strspn(version, " ("); |
436 | /* Calculate length of any operator characters */ | 436 | /* Calculate length of any operator characters */ |
437 | offset_ch = strspn(version, "<=>"); | 437 | offset_ch = strspn(version, "<=>"); |
438 | /* Determine operator */ | 438 | /* Determine operator */ |