svn commit: trunk/busybox/archival

aldot at busybox.net aldot at busybox.net
Tue Jun 5 17:28:58 UTC 2007


Author: aldot
Date: 2007-06-05 10:28:56 -0700 (Tue, 05 Jun 2007)
New Revision: 18748

Log:
- 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


Modified:
   trunk/busybox/archival/dpkg.c


Changeset:
Modified: trunk/busybox/archival/dpkg.c
===================================================================
--- trunk/busybox/archival/dpkg.c	2007-06-05 17:12:40 UTC (rev 18747)
+++ trunk/busybox/archival/dpkg.c	2007-06-05 17:28:56 UTC (rev 18748)
@@ -413,7 +413,7 @@
 			or_edge = xmalloc(sizeof(edge_t));
 			or_edge->type = edge_type + 1;
 			or_edge->name = search_name_hashtable(field);
-			or_edge->version = 0; // tracks the number of altenatives
+			or_edge->version = 0; // tracks the number of alternatives
 			add_edge_to_node(parent_node, or_edge);
 		}
 
@@ -432,7 +432,7 @@
 				edge->version = search_name_hashtable("ANY");
 			} else {
 				/* Skip leading ' ' or '(' */
-				version += strspn(field2, " (");
+				version += strspn(version, " (");
 				/* Calculate length of any operator characters */
 				offset_ch = strspn(version, "<=>");
 				/* Determine operator */




More information about the busybox-cvs mailing list