Use ordered list when configuring packages.
authorpixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Wed, 10 Feb 2010 08:47:28 +0000 (08:47 +0000)
committerpixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Wed, 10 Feb 2010 08:47:28 +0000 (08:47 +0000)
Use the ordered list when configuring packages, and not the unordered
one. Fix installation of some dependend packages.

git-svn-id: http://opkg.googlecode.com/svn/trunk@521 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/opkg_cmd.c

index 0fa471e..63de047 100644 (file)
@@ -390,8 +390,8 @@ opkg_configure_packages(char *pkg_name)
             goto error;
      }
     
-     for(i = 0; i < all->len; i++) {
-         pkg = all->pkgs[i];
+     for(i = 0; i < ordered->len; i++) {
+         pkg = ordered->pkgs[i];
 
          if (pkg_name && fnmatch(pkg_name, pkg->name, 0)) 
               continue;