r4450 - trunk/src/target/opkg/libopkg

thomas at docs.openmoko.org thomas at docs.openmoko.org
Tue May 27 12:41:50 CEST 2008


Author: thomas
Date: 2008-05-27 12:41:50 +0200 (Tue, 27 May 2008)
New Revision: 4450

Modified:
   trunk/src/target/opkg/libopkg/opkg.c
Log:
opkg: fix typos


Modified: trunk/src/target/opkg/libopkg/opkg.c
===================================================================
--- trunk/src/target/opkg/libopkg/opkg.c	2008-05-27 10:18:53 UTC (rev 4449)
+++ trunk/src/target/opkg/libopkg/opkg.c	2008-05-27 10:41:50 UTC (rev 4450)
@@ -497,7 +497,7 @@
   if (err)
   {
     opkg_package_free (pdata.package);
-    return OPKG_UNKOWN_ERROR;
+    return OPKG_UNKNOWN_ERROR;
   }
 
   /* write out status files and file lists */
@@ -573,6 +573,7 @@
 int
 opkg_upgrade_package (opkg_t *opkg, const char *package_name, opkg_progress_callback_t progress_callback, void *user_data)
 {
+  int err;
   pkg_t *pkg;
   opkg_progress_data_t pdata;
 
@@ -617,7 +618,7 @@
 
   err = opkg_configure_packages (opkg->conf, NULL);
   if (err)
-    OPKG_UNKNOWN_ERROR;
+    return OPKG_UNKNOWN_ERROR;
   progress (pdata, 100);
   opkg_package_free (pdata.package);
   return 0;





More information about the commitlog mailing list